Skip to content
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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Miguel-hrvs
Copy link
Contributor

@Miguel-hrvs Miguel-hrvs commented Jul 11, 2024

Fixes: #1992 and #2583

@Miguel-hrvs Miguel-hrvs changed the title Fix mouse show sprite 258 pressing esc Fix mouse showing sprite 258 pressing esc Jul 11, 2024
@Miguel-hrvs Miguel-hrvs requested a review from nesbox July 26, 2024 08:05
@Miguel-hrvs Miguel-hrvs marked this pull request as draft August 4, 2024 13:47
@Miguel-hrvs Miguel-hrvs marked this pull request as ready for review August 4, 2024 14:42
@@ -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;
Copy link
Owner

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

@Miguel-hrvs Miguel-hrvs marked this pull request as draft August 20, 2024 23:21
@Miguel-hrvs Miguel-hrvs marked this pull request as ready for review September 3, 2024 13:15
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];
Copy link
Owner

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

Copy link
Contributor Author

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.

@Miguel-hrvs Miguel-hrvs marked this pull request as draft September 12, 2024 07:48
@Miguel-hrvs Miguel-hrvs marked this pull request as ready for review October 2, 2024 10:48
if(c)
*dst = tic_rgba(&pal->colors[c]);
}
}
else if(sprite == 0) return;
Copy link
Owner

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

@Miguel-hrvs Miguel-hrvs marked this pull request as draft October 7, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: 258 sprite apears on ESC
2 participants