if dot_for_dot is off, resolution change has the same effect as size

2004-11-10  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_resolution_changed_handler): if dot_for_dot is
	off, resolution change has the same effect as size change, so call
	gimp_display_shell_size_changed_handler(). Fixes display garbage.
This commit is contained in:
Michael Natterer 2004-11-10 15:44:16 +00:00 committed by Michael Natterer
parent 1309a075cf
commit a7037f9d26
2 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2004-11-10 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-handlers.c
(gimp_display_shell_resolution_changed_handler): if dot_for_dot is
off, resolution change has the same effect as size change, so call
gimp_display_shell_size_changed_handler(). Fixes display garbage.
2004-11-10 Michael Natterer <mitch@gimp.org>
* plug-ins/winicon/icodialog.[ch]

View File

@ -400,8 +400,15 @@ static void
gimp_display_shell_resolution_changed_handler (GimpImage *gimage,
GimpDisplayShell *shell)
{
gimp_display_shell_scale_setup (shell);
gimp_display_shell_scaled (shell);
if (shell->dot_for_dot)
{
gimp_display_shell_scale_setup (shell);
gimp_display_shell_scaled (shell);
}
else
{
gimp_display_shell_size_changed_handler (gimage, shell);
}
}
static void