Skip to content

Commit cc215cf

Browse files
committed
fixed mouse cursor glitch between modes
1 parent e76d617 commit cc215cf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/core/core.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,9 @@ void tic_api_reset(tic_mem* memory)
357357
{
358358
resetVbank(memory);
359359
}
360-
360+
361+
memory->ram->vram.vars.cursor.sprite = tic_cursor_arrow;
362+
memory->ram->vram.vars.cursor.system = true;
361363
memory->ram->input.mouse.relative = 0;
362364

363365
soundClear(memory);

src/studio/studio.c

-3
Original file line numberDiff line numberDiff line change
@@ -2218,9 +2218,6 @@ static void processMouseStates(Studio* studio)
22182218

22192219
tic_mem* tic = studio->tic;
22202220

2221-
tic->ram->vram.vars.cursor.sprite = tic_cursor_arrow;
2222-
tic->ram->vram.vars.cursor.system = true;
2223-
22242221
for(s32 i = 0; i < COUNT_OF(studio->mouse.state); i++)
22252222
{
22262223
MouseState* state = &studio->mouse.state[i];

0 commit comments

Comments
 (0)