mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-25 08:13:58 -04:00
Formating review, using imperative mode in comments
This commit is contained in:
@ -995,7 +995,7 @@ void SetWindowMaxSize(int width, int height)
|
||||
|
||||
CORE.Window.screenMax.width = width;
|
||||
CORE.Window.screenMax.height = height;
|
||||
|
||||
|
||||
SetWindowSize(platform.appScreenWidth, platform.appScreenHeight);
|
||||
}
|
||||
|
||||
@ -1771,7 +1771,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
|
||||
SIZE maxWindowSize = CalcWindowSize(96, maxClientSize, style);
|
||||
SIZE minClientSize = { CORE.Window.screenMin.width, CORE.Window.screenMin.height };
|
||||
SIZE minWindowSize = CalcWindowSize(96, minClientSize, style);
|
||||
|
||||
|
||||
LPMINMAXINFO lpmmi = (LPMINMAXINFO) lparam;
|
||||
lpmmi->ptMaxSize.x = maxWindowSize.cx;
|
||||
lpmmi->ptMaxSize.y = maxWindowSize.cy;
|
||||
@ -1865,7 +1865,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
|
||||
case WM_SIZE:
|
||||
{
|
||||
// WARNING: Don't trust the docs, they say this message can not be obtained if not calling DefWindowProc()
|
||||
// in response to WM_WINDOWPOSCHANGED but looks like when a window is created,
|
||||
// in response to WM_WINDOWPOSCHANGED but looks like when a window is created,
|
||||
// this message can be obtained without getting WM_WINDOWPOSCHANGED
|
||||
HandleWindowResize(hwnd, &platform.appScreenWidth, &platform.appScreenHeight);
|
||||
} break;
|
||||
@ -1880,7 +1880,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
|
||||
SIZE *inoutSize = (SIZE *)lparam;
|
||||
UINT newDpi = (UINT)wparam; // TODO: WARNING: Converting from WPARAM = UINT_PTR
|
||||
|
||||
// For the following flag changes, a window resize event should be posted,
|
||||
// For the following flag changes, a window resize event should be posted,
|
||||
// TODO: Should it be done after dpi changes?
|
||||
if (CORE.Window.flags & FLAG_WINDOW_MINIMIZED) return TRUE;
|
||||
if (CORE.Window.flags & FLAG_WINDOW_MAXIMIZED) return TRUE;
|
||||
@ -2188,7 +2188,7 @@ static unsigned SanitizeFlags(int mode, unsigned flags)
|
||||
// the state continues to change
|
||||
//
|
||||
// This design takes care of many odd corner cases. For example, in case of restoring
|
||||
// a window that was previously maximized AND minimized and those two flags need to be removed,
|
||||
// a window that was previously maximized AND minimized and those two flags need to be removed,
|
||||
// ShowWindow with SW_RESTORE twice need to bee actually calleed. Another example is
|
||||
// wheen having a maximized window, if the undecorated flag is modified then the window style
|
||||
// needs to be updated, but updating the style would mean the window size would change
|
||||
|
||||
Reference in New Issue
Block a user