Implemented back the Mask mode. Fixed a historical bug of memory violation if you used Mask with images of different sizes (would crash all platforms except DOS)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1237 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
10
buttons.c
10
buttons.c
@@ -1192,6 +1192,9 @@ void Button_Page(void)
|
||||
Exchange_main_and_spare();
|
||||
|
||||
// On fait le reste du travail "à la main":
|
||||
SWAP_PBYTES(Main_visible_image.Image,Spare_visible_image.Image)
|
||||
SWAP_WORDS (Main_visible_image.Width,Spare_visible_image.Width)
|
||||
SWAP_WORDS (Main_visible_image.Height,Spare_visible_image.Height)
|
||||
SWAP_SHORTS(Main_offset_X,Spare_offset_X)
|
||||
SWAP_SHORTS(Main_offset_Y,Spare_offset_Y)
|
||||
SWAP_SHORTS(Old_main_offset_X,Old_spare_offset_X)
|
||||
@@ -1223,8 +1226,13 @@ void Button_Page(void)
|
||||
SWAP_BYTES (Main_current_layer,Spare_current_layer)
|
||||
SWAP_DWORDS(Main_layers_visible,Spare_layers_visible)
|
||||
|
||||
//Redraw_layered_image();
|
||||
// replaced by
|
||||
Update_buffers(Main_image_width, Main_image_height);
|
||||
Update_depth_buffer();
|
||||
Update_screen_targets();
|
||||
Redraw_layered_image();
|
||||
End_of_modification();
|
||||
// --
|
||||
|
||||
// A la fin, on affiche l'écran
|
||||
for (factor_index=0; ZOOM_FACTOR[factor_index]!=Main_magnifier_factor; factor_index++);
|
||||
|
||||
Reference in New Issue
Block a user