Warning to direct users to appropriate function

This commit is contained in:
AndrewHamel111
2025-04-15 21:08:35 -04:00
parent 5b940692ea
commit fdb92b373b
5 changed files with 10 additions and 0 deletions

View File

@@ -1905,6 +1905,8 @@ void TakeScreenshot(const char *fileName)
// To configure window states after creation, just use SetWindowState()
void SetConfigFlags(unsigned int flags)
{
if (CORE.Window.ready) TRACELOG(LOG_WARNING, "WINDOW: SetConfigFlags called after window initialization, Use \"SetWindowState\" to set flags instead");
// Selected flags are set but not evaluated at this point,
// flag evaluation happens at InitWindow() or SetWindowState()
CORE.Window.flags |= flags;