Merge branch 'master' into TemporaryHackishBranch

# Conflicts:
#	UI/DevScreens.cpp
Also some changes to placement of the new option on dev menu.
This commit is contained in:
LunaMoo committed 2020-02-23 17:03:42 +01:00
commit 18c822742d
156 files changed
+3912 -1605

No files matched your search

+12 -10
View File
@@ -72,6 +72,7 @@
#include "Windows/W32Util/ShellUtil.h"
#include "Windows/W32Util/Misc.h"
#include "Windows/RawInput.h"
#include "Windows/CaptureDevice.h"
#include "Windows/TouchInputHandler.h"
#include "Windows/MainWindowMenu.h"
#include "GPU/GPUInterface.h"
@@ -153,7 +154,7 @@ namespace MainWindow
// Register classes - Main Window
WNDCLASSEX wcex;
memset(&wcex, 0, sizeof(wcex));
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = 0; // Show in taskbar
wcex.lpfnWndProc = (WNDPROC)WndProc;
wcex.hInstance = hInstance;
@@ -227,7 +228,7 @@ namespace MainWindow
if (++g_Config.iInternalResolution > RESOLUTION_MAX)
g_Config.iInternalResolution = 0;
}
// Taking auto-texture scaling into account
if (g_Config.iTexScalingLevel == TEXSCALING_AUTO)
setTexScalingMultiplier(0);
@@ -328,7 +329,7 @@ namespace MainWindow
dwStyle &= ~WS_POPUP;
// Re-add caption and border styles.
dwStyle |= WS_OVERLAPPEDWINDOW;
// Put back the menu bar.
::SetMenu(hWnd, menu);
} else {
@@ -450,7 +451,7 @@ namespace MainWindow
bool portrait = g_Config.IsPortrait();
// We want to adjust for DPI but still get an integer pixel scaling ratio.
double dpi_scale = 96.0 / System_GetPropertyInt(SYSPROP_DISPLAY_DPI);
double dpi_scale = 96.0 / System_GetPropertyFloat(SYSPROP_DISPLAY_DPI);
int scale = (int)ceil(2.0 / dpi_scale);
GetWindowSizeAtResolution(scale * (portrait ? 272 : 480), scale * (portrait ? 480 : 272), &windowWidth, &windowHeight);
@@ -582,7 +583,7 @@ namespace MainWindow
if (disasmWindow[0])
delete disasmWindow[0];
disasmWindow[0] = 0;
#if PPSSPP_API(ANY_GL)
DialogManager::RemoveDlg(geDebuggerWindow);
if (geDebuggerWindow)
@@ -717,7 +718,7 @@ namespace MainWindow
}
return 0;
}
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
switch (message) {
case WM_CREATE:
@@ -726,7 +727,7 @@ namespace MainWindow
RemoveMenu(GetMenu(hWnd), ID_OPTIONS_DIRECT3D11, MF_BYCOMMAND);
}
break;
case WM_GETMINMAXINFO:
{
MINMAXINFO *minmax = reinterpret_cast<MINMAXINFO *>(lParam);
@@ -888,6 +889,7 @@ namespace MainWindow
#ifndef _M_ARM
DinputDevice::CheckDevices();
#endif
WindowsCaptureDevice::CheckDevices();
return DefWindowProc(hWnd, message, wParam, lParam);
case WM_VERYSLEEPY_MSG:
@@ -1013,10 +1015,10 @@ namespace MainWindow
case WM_SYSCOMMAND:
{
switch (wParam) {
case SC_SCREENSAVE:
case SC_SCREENSAVE:
return 0;
case SC_MONITORPOWER:
return 0;
return 0;
}
return DefWindowProc(hWnd, message, wParam, lParam);
}
@@ -1026,7 +1028,7 @@ namespace MainWindow
}
return 0;
}
void Redraw() {
InvalidateRect(hwndDisplay,0,0);
}