diff options
| author | Raymaekers Luca <luca@keyfried.com> | 2025-07-07 16:17:10 +0200 |
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-07-07 16:17:10 +0200 |
| commit | 737d4e1bdb3f00075feb12e705282357109f0ed0 (patch) | |
| tree | 5f30178397f52dd27316144e737ad9dff69f2858 /code/linux_handmade.cpp | |
| parent | c545116ea5ad4be4eece5c2488f7e864c58b1e45 (diff) | |
checkpoint
Diffstat (limited to 'code/linux_handmade.cpp')
| -rw-r--r-- | code/linux_handmade.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/code/linux_handmade.cpp b/code/linux_handmade.cpp index cf61a81..3d6895f 100644 --- a/code/linux_handmade.cpp +++ b/code/linux_handmade.cpp @@ -729,8 +729,8 @@ int main(int ArgC, char *Args[]) { Window RootWindow = XDefaultRootWindow(DisplayHandle); int Screen = XDefaultScreen(DisplayHandle); - int Width = 1920; - int Height = 1080; + int Width = 1920/2; + int Height = 1080/2; int ScreenBitDepth = 24; XVisualInfo WindowVisualInfo = {}; if(XMatchVisualInfo(DisplayHandle, Screen, ScreenBitDepth, TrueColor, &WindowVisualInfo)) @@ -745,7 +745,7 @@ int main(int ArgC, char *Args[]) u64 WindowAttributeMask = CWBitGravity | CWBackPixel | CWColormap | CWEventMask; Window WindowHandle = XCreateWindow(DisplayHandle, RootWindow, - 1920 - Width - 10, 1080 - Height - 10, + 1920 - Width - 10, 10, Width, Height, 0, WindowVisualInfo.depth, InputOutput, |
