Commit 498171fe authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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).
parent c25772b5
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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment