Skip to content

Commit 4648bda

Browse files
committed
swars: Use the recently introduced NORMAL_MOUSE_MOVE_RATIO
1 parent f0d296d commit 4648bda

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/display.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ void setup_simple_screen_mode(TbScreenMode mode)
138138
LbScreenSetup(mode, mdinfo->Width, mdinfo->Height, display_palette);
139139

140140
if (lbDisplay.GraphicsScreenHeight < 400)
141-
ratio = 2;
141+
ratio = 2 * NORMAL_MOUSE_MOVE_RATIO;
142142
else
143-
ratio = 1;
143+
ratio = 1 * NORMAL_MOUSE_MOVE_RATIO;
144144
LbMouseSetup(NULL, ratio, ratio);
145145
}
146146

@@ -168,9 +168,9 @@ void setup_screen_mode(TbScreenMode mode)
168168
}
169169

170170
if (lbDisplay.GraphicsScreenHeight < 400)
171-
ratio = 2;
171+
ratio = 2 * NORMAL_MOUSE_MOVE_RATIO;
172172
else
173-
ratio = 1;
173+
ratio = 1 * NORMAL_MOUSE_MOVE_RATIO;
174174
LbMouseSetup(&pointer_sprites[1], ratio, ratio);
175175

176176
setup_vecs(lbDisplay.WScreen, vec_tmap[0], lbDisplay.PhysicalScreenWidth,

src/game.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2320,7 +2320,8 @@ void setup_host(void)
23202320

23212321
setup_mouse_pointers();
23222322
lbMouseAutoReset = false;
2323-
LbMouseSetup(&pointer_sprites[1], 2, 2);
2323+
LbMouseSetup(&pointer_sprites[1],
2324+
2 * NORMAL_MOUSE_MOVE_RATIO, 2 * NORMAL_MOUSE_MOVE_RATIO);
23242325

23252326
setup_debug_obj_trace();
23262327

0 commit comments

Comments
 (0)