-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix mouse showing sprite 258 pressing esc #2629
base: main
Are you sure you want to change the base?
Fix mouse showing sprite 258 pressing esc #2629
Conversation
src/studio/studio.c
Outdated
@@ -2334,20 +2334,16 @@ static void blitCursor(Studio* studio) | |||
|
|||
tic_point hot = {0}; | |||
|
|||
if(tic->ram->vram.vars.cursor.system) | |||
bank = &getConfig(studio)->cart->bank0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed using of vram.vars.cursor.system
flag which user could use to switch between system/custom cursors
src/studio/studio.c
Outdated
const tic_palette* pal = &bank->palette.vbank0; | ||
const tic_tile* tile = &bank->sprites.data[sprite]; | ||
const tic_tile* tile = &studio->config->cart->bank0.sprites.data[sprite]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you always use the cursor from the config cart, this code will not work if I want to change the cursor from the game
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true. I'll look into that.
if(c) | ||
*dst = tic_rgba(&pal->colors[c]); | ||
} | ||
} | ||
else if(sprite == 0) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:) we don't draw anything if tic->ram->vram.vars.cursor.system == false
Fixes: #1992 and #2583