Add clamping to upper left edge
This commit is contained in:
parent
d79a7fbb17
commit
7ef7f57d79
|
|
@ -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)
|
void InitWindowAt(int width, int height, int x, int y, const char* title)
|
||||||
{
|
{
|
||||||
#if defined(PLATFORM_DESKTOP)
|
#if defined(PLATFORM_DESKTOP)
|
||||||
|
// Maintain borders
|
||||||
|
if(x <= 0) x = 0;
|
||||||
|
if(y <= 25) y = 25;
|
||||||
|
|
||||||
SetConfigFlags(FLAG_WINDOW_HIDDEN);
|
SetConfigFlags(FLAG_WINDOW_HIDDEN);
|
||||||
InitWindow(width, height, title);
|
InitWindow(width, height, title);
|
||||||
SetWindowPosition(x, y);
|
SetWindowPosition(x, y);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user