@@ -239,21 +239,21 @@ void callback::submenuOptions(int Param)
239239 case INITIALIZING_CALL :
240240 SubMenu = global::s2->RegisterMenu (std::make_unique<CMenu>(SPLASHSCREEN_SUBMENU3 ));
241241 // add button for "back to main menu"
242- SubMenu->addButton (submenuOptions, MAINMENU , Point16 (static_cast < int >( global::s2->GameResolution .x / 2 - 100 ) , 440 ),
242+ SubMenu->addButton (submenuOptions, MAINMENU , Point16 (global::s2->GameResolution .x / 2 - 100 , 440 ),
243243 Extent16 (200 , 20 ), BUTTON_RED1 , " back" );
244244 // add menu title
245- SubMenu->addText (" Options" , Point16 (static_cast < int >( global::s2->GameResolution .x / 2 - 20 ) , 10 ), FontSize::Large);
245+ SubMenu->addText (" Options" , Point16 (global::s2->GameResolution .x / 2 - 20 , 10 ), FontSize::Large);
246246 // add screen resolution
247247 if (TextResolution)
248248 SubMenu->delText (TextResolution);
249249 TextResolution = SubMenu->addText (
250250 helpers::format (" Game Resolution: %d*%d / %s" , global::s2->GameResolution .x , global::s2->GameResolution .y ,
251251 (global::s2->fullscreen ? " Fullscreen" : " Window" )),
252- Point16 (static_cast < int >( global::s2->GameResolution .x / 2 - 110 ) , 50 ), FontSize::Medium);
252+ Point16 (global::s2->GameResolution .x / 2 - 110 , 50 ), FontSize::Medium);
253253 if (ButtonFullscreen)
254254 SubMenu->delButton (ButtonFullscreen);
255255 ButtonFullscreen = SubMenu->addButton (
256- submenuOptions, FULLSCREEN , Point16 (static_cast < int >( global::s2->GameResolution .x / 2 - 100 ) , 190 ),
256+ submenuOptions, FULLSCREEN , Point16 (global::s2->GameResolution .x / 2 - 100 , 190 ),
257257 Extent16 (200 , 20 ), BUTTON_RED1 , (global::s2->fullscreen ? " WINDOW" : " FULLSCREEN" ));
258258 SelectBoxRes = SubMenu->addSelectBox (ButtonFullscreen->getPos () - Point16 (0 , 120 ), Extent16 (200 , 110 ),
259259 FontSize::Medium, FontColor::Yellow, BUTTON_GREY );
0 commit comments