mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-20 20:49:17 -05:00
Compare commits
2 Commits
242dfee5ef
...
403c2cbccf
| Author | SHA1 | Date | |
|---|---|---|---|
| 403c2cbccf | |||
| 1aafd3c4a4 |
@ -1777,7 +1777,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
|
|||||||
{
|
{
|
||||||
// looks like windows will automatically "unminimize" a window
|
// looks like windows will automatically "unminimize" a window
|
||||||
// if a style changes modifies it's size
|
// if a style changes modifies it's size
|
||||||
TRACELOG(LOG_INFO, "WIN32: WINDOW: Style change modifed window size, removing maximized flag");
|
TRACELOG(LOG_INFO, "WIN32: WINDOW: Style change modified window size, removing maximized flag");
|
||||||
deferredFlags->clear |= FLAG_WINDOW_MAXIMIZED;
|
deferredFlags->clear |= FLAG_WINDOW_MAXIMIZED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2149,10 +2149,10 @@ static void UpdateFlags(HWND hwnd, unsigned desiredFlags, int width, int height)
|
|||||||
// Flags that just apply immediately without needing any operations
|
// Flags that just apply immediately without needing any operations
|
||||||
CORE.Window.flags |= (desiredFlags & FLAG_MASK_NO_UPDATE);
|
CORE.Window.flags |= (desiredFlags & FLAG_MASK_NO_UPDATE);
|
||||||
|
|
||||||
int vsync = (CORE.Window.flags & FLAG_VSYNC_HINT)? 1 : 0;
|
int vsync = (desiredFlags & FLAG_VSYNC_HINT)? 1 : 0;
|
||||||
if (wglSwapIntervalEXT)
|
if (wglSwapIntervalEXT)
|
||||||
{
|
{
|
||||||
(*wglSwapIntervalEXT)(vsync);
|
wglSwapIntervalEXT(vsync);
|
||||||
if (vsync) CORE.Window.flags |= FLAG_VSYNC_HINT;
|
if (vsync) CORE.Window.flags |= FLAG_VSYNC_HINT;
|
||||||
else CORE.Window.flags &= ~FLAG_VSYNC_HINT;
|
else CORE.Window.flags &= ~FLAG_VSYNC_HINT;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -260,7 +260,7 @@ int main(int argc, char *argv[])
|
|||||||
for (int i = 0; i < lineCount; i++)
|
for (int i = 0; i < lineCount; i++)
|
||||||
{
|
{
|
||||||
int j = 0;
|
int j = 0;
|
||||||
while ((lines[i][j] == ' ') || (lines[i][j] == '\t')) j++; // skip spaces and tabs in the begining
|
while ((lines[i][j] == ' ') || (lines[i][j] == '\t')) j++; // skip spaces and tabs in the beginning
|
||||||
// Read define line
|
// Read define line
|
||||||
if (IsTextEqual(lines[i]+j, "#define ", 8))
|
if (IsTextEqual(lines[i]+j, "#define ", 8))
|
||||||
{
|
{
|
||||||
@ -385,7 +385,7 @@ int main(int argc, char *argv[])
|
|||||||
char *linePtr = lines[defineLines[i]];
|
char *linePtr = lines[defineLines[i]];
|
||||||
int j = 0;
|
int j = 0;
|
||||||
|
|
||||||
while ((linePtr[j] == ' ') || (linePtr[j] == '\t')) j++; // Skip spaces and tabs in the begining
|
while ((linePtr[j] == ' ') || (linePtr[j] == '\t')) j++; // Skip spaces and tabs in the beginning
|
||||||
j += 8; // Skip "#define "
|
j += 8; // Skip "#define "
|
||||||
while ((linePtr[j] == ' ') || (linePtr[j] == '\t')) j++; // Skip spaces and tabs after "#define "
|
while ((linePtr[j] == ' ') || (linePtr[j] == '\t')) j++; // Skip spaces and tabs after "#define "
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user