Merge pull request #23 from zydeco/rootless

Fix cursor hotspot position
This commit is contained in:
kanjitalk755 2020-01-18 19:30:38 +09:00 committed by GitHub
commit f5cb20ab31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,8 +327,8 @@ static SDL_Rect MaskCursor() {
// cursor data // cursor data
uint16 *TheCrsr = (uint16*)Mac2HostAddr(0x0844); uint16 *TheCrsr = (uint16*)Mac2HostAddr(0x0844);
// hotspot // hotspot
uint16 hx = ntohs(TheCrsr[32]); uint16 hx = ntohs(TheCrsr[33]);
uint16 hy = ntohs(TheCrsr[33]); uint16 hy = ntohs(TheCrsr[32]);
// apply mask // apply mask
for (int i=0; i < 16; i++) { for (int i=0; i < 16; i++) {