Magnifier: Both views positions are preserved on switching to Spare and back. Changing zoom with dropdown menu doesn't accidentally zoom on mouse

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1298 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2010-02-02 19:40:51 +00:00
parent 051f5e60cf
commit e96be96ce1
4 changed files with 16 additions and 8 deletions

View File

@@ -390,7 +390,7 @@ void Zoom(short delta)
if ( (index>=0) && (index<NB_ZOOM_FACTORS) )
{
Hide_cursor();
Change_magnifier_factor(index);
Change_magnifier_factor(index,1);
if (Main_magnifier_mode)
Display_all_screen();
Display_cursor();
@@ -411,7 +411,7 @@ void Zoom_set(int index)
}
else
{
Change_magnifier_factor(index);
Change_magnifier_factor(index,1);
if (!Main_magnifier_mode)
Select_button(BUTTON_MAGNIFIER,1);
Display_all_screen();