@@ -172,19 +172,19 @@ void W3DMainMenuDraw( GameWindow *window, WinInstanceData *instData )
172
172
IRegion2D topHorizontal1 ={pos.x , pos.y , pos.x + size.x , pos.y };
173
173
IRegion2D topHorizontal1drop ={pos.x , pos.y +1 , pos.x + size.x , pos.y +1 };
174
174
175
- IRegion2D topHorizontal2 ={pos.x , pos.y + (size.y * .1 ) , pos.x + size.x , pos.y + (size.y * .1 ) };
176
- IRegion2D topHorizontal2drop ={pos.x , pos.y + (size.y * .12 ) , pos.x + size.x , pos.y + (size.y * .12 ) };
175
+ IRegion2D topHorizontal2 ={pos.x , pos.y + static_cast < int > (size.y * .1 ) , pos.x + size.x , pos.y + static_cast < int > (size.y * .1 ) };
176
+ IRegion2D topHorizontal2drop ={pos.x , pos.y + static_cast < int > (size.y * .12 ) , pos.x + size.x , pos.y + static_cast < int > (size.y * .12 ) };
177
177
178
- IRegion2D bottomHorizontal1={pos.x , pos.y + (size.y * .9 ), pos.x + size.x , pos.y + (size.y * .9 ) };
179
- IRegion2D bottomHorizontal1drop={pos.x , pos.y + (size.y * .92 ), pos.x + size.x , pos.y + (size.y * .92 ) };
178
+ IRegion2D bottomHorizontal1={pos.x , pos.y + static_cast < int > (size.y * .9 ), pos.x + size.x , pos.y + static_cast < int > (size.y * .9 ) };
179
+ IRegion2D bottomHorizontal1drop={pos.x , pos.y + static_cast < int > (size.y * .92 ), pos.x + size.x , pos.y + static_cast < int > (size.y * .92 ) };
180
180
181
181
IRegion2D bottomHorizontal2= {pos.x , pos.y + size.y , pos.x + size.x , pos.y + size.y };
182
182
IRegion2D bottomHorizontal2drop= {pos.x , pos.y + size.y + 1 , pos.x + size.x , pos.y + size.y + 1 };
183
183
184
- IRegion2D verticle1 ={pos.x + (size.x * .225 ), pos.y , pos.x + (size.x * .225 ), height };
185
- IRegion2D verticle2 ={pos.x + (size.x * .445 ), pos.y , pos.x + (size.x * .445 ), height };
186
- IRegion2D verticle3 ={pos.x + (size.x * .6662 ), pos.y , pos.x + (size.x * .6662 ), height };
187
- IRegion2D verticle4 ={pos.x + (size.x * .885 ), pos.y , pos.x + (size.x * .885 ), height };
184
+ IRegion2D verticle1 ={pos.x + static_cast < int > (size.x * .225 ), pos.y , pos.x + static_cast < int > (size.x * .225 ), height };
185
+ IRegion2D verticle2 ={pos.x + static_cast < int > (size.x * .445 ), pos.y , pos.x + static_cast < int > (size.x * .445 ), height };
186
+ IRegion2D verticle3 ={pos.x + static_cast < int > (size.x * .6662 ), pos.y , pos.x + static_cast < int > (size.x * .6662 ), height };
187
+ IRegion2D verticle4 ={pos.x + static_cast < int > (size.x * .885 ), pos.y , pos.x + static_cast < int > (size.x * .885 ), height };
188
188
// static IRegion2D verticle5 ={pos.x + (size.x * .7250), pos.y + (size.y * .12), pos.x + (size.x * .7250), pos.y + (size.y * .86) };
189
189
// static IRegion2D verticle6 ={pos.x + (size.x * .9062), pos.y + (size.y * .12), pos.x + (size.x * .9062), pos.y + (size.y * .86) };
190
190
@@ -236,19 +236,19 @@ void W3DMainMenuFourDraw( GameWindow *window, WinInstanceData *instData )
236
236
IRegion2D topHorizontal1 ={pos.x , pos.y , pos.x + size.x , pos.y };
237
237
IRegion2D topHorizontal1drop ={pos.x , pos.y +1 , pos.x + size.x , pos.y +1 };
238
238
239
- IRegion2D topHorizontal2 ={pos.x , pos.y + (size.y * .1 ) , pos.x + size.x , pos.y + (size.y * .1 ) };
240
- IRegion2D topHorizontal2drop ={pos.x , pos.y + (size.y * .12 ) , pos.x + size.x , pos.y + (size.y * .12 ) };
239
+ IRegion2D topHorizontal2 ={pos.x , pos.y + static_cast < int > (size.y * .1 ) , pos.x + size.x , pos.y + static_cast < int > (size.y * .1 ) };
240
+ IRegion2D topHorizontal2drop ={pos.x , pos.y + static_cast < int > (size.y * .12 ) , pos.x + size.x , pos.y + static_cast < int > (size.y * .12 ) };
241
241
242
- IRegion2D bottomHorizontal1={pos.x , pos.y + (size.y * .9 ), pos.x + size.x , pos.y + (size.y * .9 ) };
243
- IRegion2D bottomHorizontal1drop={pos.x , pos.y + (size.y * .92 ), pos.x + size.x , pos.y + (size.y * .92 ) };
242
+ IRegion2D bottomHorizontal1={pos.x , pos.y + static_cast < int > (size.y * .9 ), pos.x + size.x , pos.y + static_cast < int > (size.y * .9 ) };
243
+ IRegion2D bottomHorizontal1drop={pos.x , pos.y + static_cast < int > (size.y * .92 ), pos.x + size.x , pos.y + static_cast < int > (size.y * .92 ) };
244
244
245
245
IRegion2D bottomHorizontal2= {pos.x , pos.y + size.y , pos.x + size.x , pos.y + size.y };
246
246
IRegion2D bottomHorizontal2drop= {pos.x , pos.y + size.y + 1 , pos.x + size.x , pos.y + size.y + 1 };
247
247
248
- IRegion2D verticle1 ={pos.x + (size.x * .295 ), pos.y , pos.x + (size.x * .295 ), height };
249
- IRegion2D verticle2 ={pos.x + (size.x * .59 ), pos.y , pos.x + (size.x * .59 ), height };
248
+ IRegion2D verticle1 ={pos.x + static_cast < int > (size.x * .295 ), pos.y , pos.x + static_cast < int > (size.x * .295 ), height };
249
+ IRegion2D verticle2 ={pos.x + static_cast < int > (size.x * .59 ), pos.y , pos.x + static_cast < int > (size.x * .59 ), height };
250
250
// IRegion2D verticle3 ={pos.x + (size.x * .6662), pos.y, pos.x + (size.x * .6662), height };
251
- IRegion2D verticle4 ={pos.x + (size.x * .885 ), pos.y , pos.x + (size.x * .885 ), height };
251
+ IRegion2D verticle4 ={pos.x + static_cast < int > (size.x * .885 ), pos.y , pos.x + static_cast < int > (size.x * .885 ), height };
252
252
// static IRegion2D verticle5 ={pos.x + (size.x * .7250), pos.y + (size.y * .12), pos.x + (size.x * .7250), pos.y + (size.y * .86) };
253
253
// static IRegion2D verticle6 ={pos.x + (size.x * .9062), pos.y + (size.y * .12), pos.x + (size.x * .9062), pos.y + (size.y * .86) };
254
254
0 commit comments