Make the new UI more usable at 1x zoom.

It's no longer the default, but still an option.
Not super legible is better than broken.
This commit is contained in:
Unknown W. Brackets committed 2013-03-31 19:15:59 -07:00
1 parent 5c4fe5c5b9
commit c8fb03327e
2 files changed
+25

No files matched your search

+7
View File
@@ -89,6 +89,13 @@ void Core_WaitInactive(int milliseconds)
void UpdateScreenScale() {
dp_xres = PSP_CoreParameter().pixelWidth;
dp_yres = PSP_CoreParameter().pixelHeight;
#ifdef _WIN32
if (g_Config.iWindowZoom == 1)
{
dp_xres *= 2;
dp_yres *= 2;
}
#endif
pixel_xres = PSP_CoreParameter().pixelWidth;
pixel_yres = PSP_CoreParameter().pixelHeight;
g_dpi = 72;
+18
View File
@@ -267,6 +267,12 @@ namespace MainWindow
input_state.pointer_down[0] = true;
input_state.pointer_x[0] = GET_X_LPARAM(lParam);
input_state.pointer_y[0] = GET_Y_LPARAM(lParam);
if (g_Config.iWindowZoom == 1)
{
input_state.pointer_x[0] *= 2;
input_state.pointer_y[0] *= 2;
}
}
break;
@@ -275,6 +281,12 @@ namespace MainWindow
lock_guard guard(input_state.lock);
input_state.pointer_x[0] = GET_X_LPARAM(lParam);
input_state.pointer_y[0] = GET_Y_LPARAM(lParam);
if (g_Config.iWindowZoom == 1)
{
input_state.pointer_x[0] *= 2;
input_state.pointer_y[0] *= 2;
}
}
break;
@@ -284,6 +296,12 @@ namespace MainWindow
input_state.pointer_down[0] = false;
input_state.pointer_x[0] = GET_X_LPARAM(lParam);
input_state.pointer_y[0] = GET_Y_LPARAM(lParam);
if (g_Config.iWindowZoom == 1)
{
input_state.pointer_x[0] *= 2;
input_state.pointer_y[0] *= 2;
}
}
break;