mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
Added Windows UI for xBR texture scaling option
This commit is contained in:
parent
04d0a61968
commit
30f3d8dbee
@ -175,6 +175,11 @@ namespace MainWindow
|
||||
ResizeDisplay();
|
||||
}
|
||||
|
||||
void toggleXbrzTexScaling(int num) {
|
||||
g_Config.iXBRZTexScalingLevel = (g_Config.iXBRZTexScalingLevel == num) ? 0 : num;
|
||||
if(gpu) gpu->InvalidateCache(0,0);
|
||||
}
|
||||
|
||||
BOOL Show(HINSTANCE hInstance, int nCmdShow)
|
||||
{
|
||||
hInst = hInstance; // Store instance handle in our global variable
|
||||
@ -495,6 +500,19 @@ namespace MainWindow
|
||||
g_Config.bMipMap = !g_Config.bMipMap;
|
||||
break;
|
||||
|
||||
case ID_TEXTURESCALING_2XBRZ:
|
||||
toggleXbrzTexScaling(2);
|
||||
break;
|
||||
case ID_TEXTURESCALING_3XBRZ:
|
||||
toggleXbrzTexScaling(3);
|
||||
break;
|
||||
case ID_TEXTURESCALING_4XBRZ:
|
||||
toggleXbrzTexScaling(4);
|
||||
break;
|
||||
case ID_TEXTURESCALING_5XBRZ:
|
||||
toggleXbrzTexScaling(5);
|
||||
break;
|
||||
|
||||
case ID_OPTIONS_BUFFEREDRENDERING:
|
||||
g_Config.bBufferedRendering = !g_Config.bBufferedRendering;
|
||||
if (gpu)
|
||||
@ -785,6 +803,16 @@ namespace MainWindow
|
||||
for (int i = 0; i < 4; i++) {
|
||||
CheckMenuItem(menu, zoomitems[i], MF_BYCOMMAND | ((i == g_Config.iWindowZoom - 1) ? MF_CHECKED : MF_UNCHECKED));
|
||||
}
|
||||
|
||||
static const int texscalingitems[4] = {
|
||||
ID_TEXTURESCALING_2XBRZ,
|
||||
ID_TEXTURESCALING_3XBRZ,
|
||||
ID_TEXTURESCALING_4XBRZ,
|
||||
ID_TEXTURESCALING_5XBRZ,
|
||||
};
|
||||
for (int i = 0; i < 4; i++) {
|
||||
CheckMenuItem(menu, texscalingitems[i], MF_BYCOMMAND | ((i == g_Config.iXBRZTexScalingLevel-2) ? MF_CHECKED : MF_UNCHECKED));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user