Mobile: TouchScreenGUI button position fix

This commit is contained in:
MoNTE48 2020-02-06 16:20:19 +01:00
parent 9b28204882
commit dfb5101344

View File

@ -303,14 +303,15 @@ void TouchScreenGUI::init(ISimpleTextureSource *tsrc) {
m_screensize.Y / 2), m_screensize.Y / 2),
L"drop", false, SLOW_BUTTON_REPEAT); L"drop", false, SLOW_BUTTON_REPEAT);
//dirty implementation of positions for iOS // dirty implementation of positions for iOS
double button_075 = 1; #ifndef __IOS__
double button_05 = 1; s32 button_075 = 1;
double button_05b = 0; s32 button_05 = 1;
#ifdef __IOS__ s32 button_05b = 0;
button_075 = 0.75; #else
button_05 = 2; double button_075 = 0.75;
button_05b = button_size / 2; s32 button_05 = 2;
double button_05b = button_size * 0.5;
#endif #endif
// init pause button [1] // init pause button [1]