mirror of https://github.com/GNOME/gimp.git
fix calculation of zoom offsets in the case that dot-for-dot mode is not
2005-06-04 Sven Neumann <sven@gimp.org> * app/tools/gimpmagnifytool.c (gimp_magnify_tool_button_release): fix calculation of zoom offsets in the case that dot-for-dot mode is not enabled (bug #306476).
This commit is contained in:
parent
c25772b597
commit
498171fe1e
|
@ -1,3 +1,9 @@
|
|||
2005-06-04 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/tools/gimpmagnifytool.c (gimp_magnify_tool_button_release):
|
||||
fix calculation of zoom offsets in the case that dot-for-dot mode
|
||||
is not enabled (bug #306476).
|
||||
|
||||
2005-06-04 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/widgets/gimpdnd.c (gimp_dnd_get_viewable_icon): use the
|
||||
|
|
|
@ -268,8 +268,13 @@ gimp_magnify_tool_button_release (GimpTool *tool,
|
|||
new_scale = shell->scale * scale;
|
||||
}
|
||||
|
||||
offset_x = (new_scale * (x1 + x2) / 2) - (win_width / 2);
|
||||
offset_y = (new_scale * (y1 + y2) / 2) - (win_height / 2);
|
||||
offset_x = (new_scale * ((x1 + x2) / 2)
|
||||
* SCREEN_XRES (shell) / gdisp->gimage->xresolution
|
||||
- (win_width / 2));
|
||||
|
||||
offset_y = (new_scale * ((y1 + y2) / 2)
|
||||
* SCREEN_YRES (shell) / gdisp->gimage->yresolution
|
||||
- (win_height / 2));
|
||||
|
||||
gimp_display_shell_scale_by_values (shell,
|
||||
new_scale,
|
||||
|
|
Loading…
Reference in New Issue