Skip to content

Commit

Permalink
Update to fixed version of SDL bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
DDoS committed Mar 16, 2017
1 parent b55a517 commit d844a6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"targetPath": "bin",
"stringImportPaths": ["src/gbaid/gba/assembly"],
"dependencies": {
"derelict-sdl2":"2.1.0",
"derelict-gl3":"1.0.18"
"derelict-sdl2":"2.1.2",
"derelict-gl3":"1.0.21"
},
}
3 changes: 1 addition & 2 deletions src/gbaid/render/gl20.d
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ public class GL20Context : Context {
}
} else {
// In window mode, we limit the size to the maximum usable area
// DerelictSDL2 bug: this should be the display index, not a mode. Hack fix: pass as a pointer
if (SDL_GetDisplayUsableBounds(cast(SDL_DisplayMode*) 0, &maxSize) < 0) {
if (SDL_GetDisplayUsableBounds(0, &maxSize) < 0) {
throw new Exception("Failed to get usable display bounds: " ~ toDString(SDL_GetError()));
}
if (width != null) {
Expand Down

0 comments on commit d844a6c

Please sign in to comment.