-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #513 by getting window size with SDL2
When under XMonad, game window size using XGetGeometry() is 2 pixels shorter (width and height) than using SDL_GetWindowSize(). As a result, calling SDL_RenderReadPixels() to copy the screen pixels resulted in a crash (__memmove_sse2_unaligned_erms), probably something about accelerated rendering and not having width/height multiple of 4.
- Loading branch information
1 parent
379ab9b
commit 292fe39
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters