mirror of https://github.com/GNOME/gimp.git
fixed integer/boolean confusion: s/0/FALSE/.
2004-02-05 Michael Natterer <mitch@gimp.org> * app/display/gimpdisplayshell.c (gimp_display_shell_mask_bounds): fixed integer/boolean confusion: s/0/FALSE/. (gimp_display_shell_draw_cursor): draw the cursor only if shell->have_cursor is TRUE. * app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_canvas_expose): call the above unconditionally.
This commit is contained in:
parent
1463cf3c3f
commit
561a60b010
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2004-02-05 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/display/gimpdisplayshell.c (gimp_display_shell_mask_bounds):
|
||||
fixed integer/boolean confusion: s/0/FALSE/.
|
||||
|
||||
(gimp_display_shell_draw_cursor): draw the cursor only if
|
||||
shell->have_cursor is TRUE.
|
||||
|
||||
* app/display/gimpdisplayshell-callbacks.c
|
||||
(gimp_display_shell_canvas_expose): call the above unconditionally.
|
||||
|
||||
2004-02-05 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
Disallow editing of data objects which have no save functionality.
|
||||
|
|
|
@ -389,8 +389,7 @@ gimp_display_shell_canvas_expose (GtkWidget *widget,
|
|||
gimp_display_shell_draw_grid (shell);
|
||||
|
||||
/* and the cursor (if we have a software cursor) */
|
||||
if (shell->have_cursor)
|
||||
gimp_display_shell_draw_cursor (shell);
|
||||
gimp_display_shell_draw_cursor (shell);
|
||||
|
||||
/* restart (and recalculate) the selection boundaries */
|
||||
gimp_display_shell_selection_start (shell->select, TRUE);
|
||||
|
|
|
@ -1113,8 +1113,8 @@ gimp_display_shell_mask_bounds (GimpDisplayShell *shell,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
gimp_display_shell_transform_xy (shell, *x1, *y1, x1, y1, 0);
|
||||
gimp_display_shell_transform_xy (shell, *x2, *y2, x2, y2, 0);
|
||||
gimp_display_shell_transform_xy (shell, *x1, *y1, x1, y1, FALSE);
|
||||
gimp_display_shell_transform_xy (shell, *x2, *y2, x2, y2, FALSE);
|
||||
|
||||
/* Make sure the extents are within bounds */
|
||||
*x1 = CLAMP (*x1, 0, shell->disp_width);
|
||||
|
@ -1574,8 +1574,9 @@ gimp_display_shell_draw_cursor (GimpDisplayShell *shell)
|
|||
{
|
||||
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
|
||||
|
||||
gimp_canvas_draw_cursor (GIMP_CANVAS (shell->canvas),
|
||||
shell->cursor_x, shell->cursor_y);
|
||||
if (shell->have_cursor)
|
||||
gimp_canvas_draw_cursor (GIMP_CANVAS (shell->canvas),
|
||||
shell->cursor_x, shell->cursor_y);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1113,8 +1113,8 @@ gimp_display_shell_mask_bounds (GimpDisplayShell *shell,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
gimp_display_shell_transform_xy (shell, *x1, *y1, x1, y1, 0);
|
||||
gimp_display_shell_transform_xy (shell, *x2, *y2, x2, y2, 0);
|
||||
gimp_display_shell_transform_xy (shell, *x1, *y1, x1, y1, FALSE);
|
||||
gimp_display_shell_transform_xy (shell, *x2, *y2, x2, y2, FALSE);
|
||||
|
||||
/* Make sure the extents are within bounds */
|
||||
*x1 = CLAMP (*x1, 0, shell->disp_width);
|
||||
|
@ -1574,8 +1574,9 @@ gimp_display_shell_draw_cursor (GimpDisplayShell *shell)
|
|||
{
|
||||
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
|
||||
|
||||
gimp_canvas_draw_cursor (GIMP_CANVAS (shell->canvas),
|
||||
shell->cursor_x, shell->cursor_y);
|
||||
if (shell->have_cursor)
|
||||
gimp_canvas_draw_cursor (GIMP_CANVAS (shell->canvas),
|
||||
shell->cursor_x, shell->cursor_y);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue