Minor code/logging cleanups.

This commit is contained in:
Henrik Rydgård committed 2018-02-27 19:44:11 +01:00
1 parent 4b784e6035
commit 14c93bdc2b
7 files changed
+16 -23

No files matched your search

+1 -3
View File
@@ -263,8 +263,6 @@ namespace MainWindow
// Moves the internal display window to match the inner size of the main window.
MoveWindow(hwndDisplay, 0, 0, width, height, TRUE);
INFO_LOG(SYSTEM, "New width/height: %dx%d", width, height);
// Setting pixelWidth to be too small could have odd consequences.
if (width >= 4 && height >= 4) {
// The framebuffer manager reads these once per frame, hopefully safe enough.. should really use a mutex or some
@@ -273,7 +271,7 @@ namespace MainWindow
PSP_CoreParameter().pixelHeight = height;
}
INFO_LOG(SYSTEM, "Pixel width/height: %dx%d", PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight);
DEBUG_LOG(SYSTEM, "Pixel width/height: %dx%d", PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight);
if (UpdateScreenScale(width, height)) {
NativeMessageReceived("gpu_resized", "");