Fixed bad display and possible crash, when the zoomed area showed more than 512 pixels (requires resolution >1600)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@824 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -106,7 +106,7 @@ void Pixel_preview_magnifier_double (word x,word y,byte color)
|
||||
{
|
||||
// On est dedans
|
||||
int height;
|
||||
int y_zoom = Zoom_factor_table[y-Main_magnifier_offset_Y];
|
||||
int y_zoom = Main_magnifier_factor * (y-Main_magnifier_offset_Y);
|
||||
|
||||
if (Menu_Y - y_zoom < Main_magnifier_factor)
|
||||
// On ne doit dessiner qu'un morceau du pixel
|
||||
@@ -116,7 +116,7 @@ void Pixel_preview_magnifier_double (word x,word y,byte color)
|
||||
height = Main_magnifier_factor;
|
||||
|
||||
Block_double(
|
||||
Zoom_factor_table[x-Main_magnifier_offset_X]+Main_X_zoom,
|
||||
Main_magnifier_factor * (x-Main_magnifier_offset_X) + Main_X_zoom,
|
||||
y_zoom, Main_magnifier_factor, height, color
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user