app/gdisplay.c app/paths_dialog.c app/paths_dialog.h

Sat May 15 00:06:06 BST 1999 Andy Thomas <alt@gimp.org>

	* app/gdisplay.c
	* app/paths_dialog.c
	* app/paths_dialog.h

	Fixed problem where paths preview not resized correctly when
	image was resized.
This commit is contained in:
BST 1999 Andy Thomas 1999-05-14 23:16:58 +00:00 committed by Andy Thomas
parent 5dd060bd56
commit a4730edaf3
8 changed files with 66 additions and 0 deletions

View File

@ -1,3 +1,12 @@
Sat May 15 00:06:06 BST 1999 Andy Thomas <alt@gimp.org>
* app/gdisplay.c
* app/paths_dialog.c
* app/paths_dialog.h
Fixed problem where paths preview not resized correctly when
image was resized.
1999-05-13 Jay Cox <jaycox@earthlink.net>
* app/pencil.c: use the new color picking feature of paint_core.

View File

@ -37,6 +37,9 @@
#include "interface.h"
#include "layers_dialog.h"
#include "menus.h"
#include "draw_core.h"
#include "bezier_selectP.h"
#include "paths_dialog.h"
#include "plug_in.h"
#include "scale.h"
#include "scroll.h"
@ -2064,6 +2067,8 @@ gdisplays_flush_whenever (gboolean now)
layers_dialog_flush ();
/* for convenience, we call the channels dialog flush here */
channels_dialog_flush ();
/* for convenience, we call the paths dialog flush here */
paths_dialog_flush();
flushing = FALSE;
}

View File

@ -37,6 +37,9 @@
#include "interface.h"
#include "layers_dialog.h"
#include "menus.h"
#include "draw_core.h"
#include "bezier_selectP.h"
#include "paths_dialog.h"
#include "plug_in.h"
#include "scale.h"
#include "scroll.h"
@ -2064,6 +2067,8 @@ gdisplays_flush_whenever (gboolean now)
layers_dialog_flush ();
/* for convenience, we call the channels dialog flush here */
channels_dialog_flush ();
/* for convenience, we call the paths dialog flush here */
paths_dialog_flush();
flushing = FALSE;
}

View File

@ -37,6 +37,9 @@
#include "interface.h"
#include "layers_dialog.h"
#include "menus.h"
#include "draw_core.h"
#include "bezier_selectP.h"
#include "paths_dialog.h"
#include "plug_in.h"
#include "scale.h"
#include "scroll.h"
@ -2064,6 +2067,8 @@ gdisplays_flush_whenever (gboolean now)
layers_dialog_flush ();
/* for convenience, we call the channels dialog flush here */
channels_dialog_flush ();
/* for convenience, we call the paths dialog flush here */
paths_dialog_flush();
flushing = FALSE;
}

View File

@ -1852,6 +1852,26 @@ paths_dialog_edit_point_callback (GtkWidget * widget, gpointer udata)
bezier_select_mode(EXTEND_EDIT);
}
void
paths_dialog_flush()
{
GImage *gimage;
if (!paths_dialog)
return;
if (!(gimage = paths_dialog->gimage))
return;
gimage = paths_dialog->gimage;
if ((gimage->width != paths_dialog->gimage_width) ||
(gimage->height != paths_dialog->gimage_height))
{
paths_dialog->gimage = NULL;
paths_dialog_update(gimage);
}
}
void
paths_first_button_press(BezierSelect *bezier_sel,GDisplay * gdisp)

View File

@ -27,5 +27,6 @@ void paths_first_button_press(BezierSelect *,GDisplay *);
void paths_new_bezier_select_tool(void);
PATHP paths_get_bzpaths(void);
void paths_set_bzpaths(GImage*,PATHP);
void paths_dialog_flush(void);
#endif /* __PATHS_DIALOG_H__ */

View File

@ -1852,6 +1852,26 @@ paths_dialog_edit_point_callback (GtkWidget * widget, gpointer udata)
bezier_select_mode(EXTEND_EDIT);
}
void
paths_dialog_flush()
{
GImage *gimage;
if (!paths_dialog)
return;
if (!(gimage = paths_dialog->gimage))
return;
gimage = paths_dialog->gimage;
if ((gimage->width != paths_dialog->gimage_width) ||
(gimage->height != paths_dialog->gimage_height))
{
paths_dialog->gimage = NULL;
paths_dialog_update(gimage);
}
}
void
paths_first_button_press(BezierSelect *bezier_sel,GDisplay * gdisp)

View File

@ -27,5 +27,6 @@ void paths_first_button_press(BezierSelect *,GDisplay *);
void paths_new_bezier_select_tool(void);
PATHP paths_get_bzpaths(void);
void paths_set_bzpaths(GImage*,PATHP);
void paths_dialog_flush(void);
#endif /* __PATHS_DIALOG_H__ */