initialise gdisp->cursor_x and gdisp->cursor_y to 0 in gdisplay_new() so

2001-06-15  Austin Donnelly  <austin@gimp.org>

	* app/gdisplay.c: initialise gdisp->cursor_x and gdisp->cursor_y
	    to 0 in gdisplay_new() so that we don't get floating point
	    exceptions when attempting to translate to screen co-ords in
	    gdisplay_update_cursor().  Fixes critical Bug #56237.
This commit is contained in:
Austin Donnelly 2001-06-15 11:21:14 +00:00 committed by Austin Donnelly
parent 593043a1b6
commit e2c857aef5
4 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2001-06-15 Austin Donnelly <austin@gimp.org>
* app/gdisplay.c: initialise gdisp->cursor_x and gdisp->cursor_y
to 0 in gdisplay_new() so that we don't get floating point
exceptions when attempting to translate to screen co-ords in
gdisplay_update_cursor(). Fixes critical Bug #56237.
2001-06-14 Michael Natterer <mitch@gimp.org>
* app/gdisplay.c: fixed a FIXME: set the sensitivity of the

View file

@ -169,6 +169,8 @@ gdisplay_new (GimpImage *gimage,
gdisp->draw_cursor = FALSE;
gdisp->proximity = FALSE;
gdisp->have_cursor = FALSE;
gdisp->cursor_x = 0;
gdisp->cursor_y = 0;
gdisp->using_override_cursor = FALSE;
gdisp->progressid = FALSE;

View file

@ -169,6 +169,8 @@ gdisplay_new (GimpImage *gimage,
gdisp->draw_cursor = FALSE;
gdisp->proximity = FALSE;
gdisp->have_cursor = FALSE;
gdisp->cursor_x = 0;
gdisp->cursor_y = 0;
gdisp->using_override_cursor = FALSE;
gdisp->progressid = FALSE;

View file

@ -169,6 +169,8 @@ gdisplay_new (GimpImage *gimage,
gdisp->draw_cursor = FALSE;
gdisp->proximity = FALSE;
gdisp->have_cursor = FALSE;
gdisp->cursor_x = 0;
gdisp->cursor_y = 0;
gdisp->using_override_cursor = FALSE;
gdisp->progressid = FALSE;