Skip to content

Commit d844a6c

Browse files
committed
Update to fixed version of SDL bindings
1 parent b55a517 commit d844a6c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"targetPath": "bin",
88
"stringImportPaths": ["src/gbaid/gba/assembly"],
99
"dependencies": {
10-
"derelict-sdl2":"2.1.0",
11-
"derelict-gl3":"1.0.18"
10+
"derelict-sdl2":"2.1.2",
11+
"derelict-gl3":"1.0.21"
1212
},
1313
}

Diff for: src/gbaid/render/gl20.d

+1-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ public class GL20Context : Context {
160160
}
161161
} else {
162162
// In window mode, we limit the size to the maximum usable area
163-
// DerelictSDL2 bug: this should be the display index, not a mode. Hack fix: pass as a pointer
164-
if (SDL_GetDisplayUsableBounds(cast(SDL_DisplayMode*) 0, &maxSize) < 0) {
163+
if (SDL_GetDisplayUsableBounds(0, &maxSize) < 0) {
165164
throw new Exception("Failed to get usable display bounds: " ~ toDString(SDL_GetError()));
166165
}
167166
if (width != null) {

0 commit comments

Comments
 (0)