mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
enable hardware cursor on SDL 1.2.15+
This commit is contained in:
parent
4161b3d153
commit
0604cce26b
@ -1552,9 +1552,10 @@ bool video_can_change_cursor(void)
|
||||
if (SDL_VideoDriverName(driver, sizeof driver) == NULL || strncmp(driver, "Quartz", sizeof driver))
|
||||
quartzok = true;
|
||||
else {
|
||||
// Quartz driver bug prevents cursor changing in SDL 1.2.11 and later
|
||||
// Quartz driver bug prevents cursor changing in SDL 1.2.11 to 1.2.14.
|
||||
const SDL_version *vp = SDL_Linked_Version();
|
||||
quartzok = SDL_VERSIONNUM(vp->major, vp->minor, vp->patch) <= SDL_VERSIONNUM(1, 2, 10);
|
||||
int version = SDL_VERSIONNUM(vp->major, vp->minor, vp->patch);
|
||||
quartzok = (version <= SDL_VERSIONNUM(1, 2, 10) || version >= SDL_VERSIONNUM(1, 2, 15));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user