No longer crash when switching to spare (introduced by recent zoom to cursor change)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1146 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
b6d6fe19b6
commit
1141b0ac20
@ -1539,7 +1539,7 @@ void Change_magnifier_factor(byte factor_index)
|
||||
int center_y;
|
||||
|
||||
// Values that need to be computed before switching to the new zoom factor
|
||||
if (Cursor_in_menu)
|
||||
if (Cursor_in_menu || !Main_magnifier_mode)
|
||||
{
|
||||
center_x=Main_magnifier_offset_X+(Main_magnifier_width>>1);
|
||||
center_y=Main_magnifier_offset_Y+(Main_magnifier_height>>1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user