expose the preview when the tool is initialized. Fixes missing redraws
2008-09-04 Sven Neumann <sven@gimp.org> * app/tools/gimptransformtool.c (gimp_transform_tool_initialize): expose the preview when the tool is initialized. Fixes missing redraws when the tool is selected from the menus (bug #550911). (gimp_transform_tool_motion): expose the preview after recalculating the transformation matrix. svn path=/trunk/; revision=26868
This commit is contained in:

committed by
Sven Neumann

parent
8172ba88a1
commit
66a3aedea6
@ -1,3 +1,12 @@
|
|||||||
|
2008-09-04 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/tools/gimptransformtool.c (gimp_transform_tool_initialize):
|
||||||
|
expose the preview when the tool is initialized. Fixes missing
|
||||||
|
redraws when the tool is selected from the menus (bug #550911).
|
||||||
|
|
||||||
|
(gimp_transform_tool_motion): expose the preview after
|
||||||
|
recalculating the transformation matrix.
|
||||||
|
|
||||||
2008-09-04 Sven Neumann <sven@gimp.org>
|
2008-09-04 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/display/gimpdisplayshell-dnd.c: improved the new DND code.
|
* app/display/gimpdisplayshell-dnd.c: improved the new DND code.
|
||||||
|
@ -361,6 +361,8 @@ gimp_transform_tool_initialize (GimpTool *tool,
|
|||||||
/* start drawing the bounding box and handles... */
|
/* start drawing the bounding box and handles... */
|
||||||
gimp_draw_tool_start (GIMP_DRAW_TOOL (tool), display);
|
gimp_draw_tool_start (GIMP_DRAW_TOOL (tool), display);
|
||||||
|
|
||||||
|
gimp_transform_tool_expose_preview (tr_tool);
|
||||||
|
|
||||||
tr_tool->function = TRANSFORM_CREATING;
|
tr_tool->function = TRANSFORM_CREATING;
|
||||||
|
|
||||||
/* Save the current transformation info */
|
/* Save the current transformation info */
|
||||||
@ -487,9 +489,9 @@ gimp_transform_tool_motion (GimpTool *tool,
|
|||||||
{
|
{
|
||||||
tr_tool_class->motion (tr_tool, display);
|
tr_tool_class->motion (tr_tool, display);
|
||||||
|
|
||||||
gimp_transform_tool_expose_preview (tr_tool);
|
|
||||||
|
|
||||||
gimp_transform_tool_recalc (tr_tool, display);
|
gimp_transform_tool_recalc (tr_tool, display);
|
||||||
|
|
||||||
|
gimp_transform_tool_expose_preview (tr_tool);
|
||||||
}
|
}
|
||||||
|
|
||||||
tr_tool->lastx = tr_tool->curx;
|
tr_tool->lastx = tr_tool->curx;
|
||||||
|
Reference in New Issue
Block a user