Add clamping to upper left edge

This commit is contained in:
tusharsingh09 2022-01-29 16:35:37 +05:30
parent d79a7fbb17
commit 7ef7f57d79

View File

@ -924,6 +924,10 @@ void InitWindow(int width, int height, const char *title)
void InitWindowAt(int width, int height, int x, int y, const char* title)
{
#if defined(PLATFORM_DESKTOP)
// Maintain borders
if(x <= 0) x = 0;
if(y <= 25) y = 25;
SetConfigFlags(FLAG_WINDOW_HIDDEN);
InitWindow(width, height, title);
SetWindowPosition(x, y);