0add37a6cc
app: remove GimpDisplayShell parameters from all GimpCanvasItem vfuncs
...
and get the shell from gimp_canvas_item_get_shell() if needed. Remove
some cairo_translate() that didn't have any effect and were leftovers
from a very early canvas item code.
2013-04-18 16:46:01 +02:00
64c929a1d1
app: add an own GimpCanvasItem API for transforming coords
...
and use it in all subclasses. Removes all gimpdisplayshell-transform
dependency from all item implementations.
2013-04-18 16:46:00 +02:00
faf2217811
Bug 696958 - In-image preview in Transform tools is off by one screen pixel
...
Simplify the loops without any significant loss in performance, separating
the positive and negative X directions to treat each correctly. Fixes this
bug.
2013-04-02 17:23:40 +02:00
c83e7790bf
app: Two mostly cosmetic changes
...
Use a temporary that is less expensive to refer to. Don't loop more
than necessary when comparing pairs.
2013-04-02 17:05:52 +02:00
cc916e4894
app: speed up GimpCanvasTransformPreview massively
...
by reading from the source buffers in their native format, and then
calling babl_process() on an entire line of pixels at once.
2012-06-07 00:50:58 +02:00
736eb26637
app: port GimpCanvasTransformPreview to gegl_buffer_sample()
2012-05-02 17:51:11 +02:00
d9f1a9eec6
app: Drop redundant assignment
2011-10-12 19:02:49 +05:30
6e4a5b1996
app (display): Drop redundant assignments
2011-10-11 10:29:55 +05:30
9f1187f6a5
app: Prefix TileManager functions
...
read_pixel_data() -> tile_manager_read_pixel_data()
write_pixel_data() -> tile_manager_write_pixel_data()
read_pixel_data_1() -> tile_manager_read_pixel_data_1()
write_pixel_data_1() -> tile_manager_write_pixel_data_1()
for consistency.
2011-09-07 12:08:43 +02:00
ea27c7bc83
app: add the MIN4() and MAX4() macros to gimp-utils.h
...
instead of having them in 5 .c files.
2011-06-04 17:16:21 +02:00
1371602383
app: call cairo_surface_flush before drawing directly
2011-05-26 20:17:08 +02:00
cc47b2a600
libgimpwidgets/color: move the cairo color utility functions to libgimpcolor
...
Add CAIRO_CFLAGS to a lot of Makefiles to make this possible, and
because they pull in cairo via the libgimp headers.
2011-04-28 15:50:39 +02:00
fde934ac58
app: s/GdkRectangle/cairo_rectangle_int_t/ in all GimpCanvasItems
2011-04-10 18:15:16 +02:00
eb4f01039a
app: add utility function gimp_transform_polygon_is_convex()
...
and use it in GimpTransformTool and GimpCanvasTransformPreview.
2011-03-27 22:04:33 +02:00
8a09fd1f34
app: refactor GimpCanvasTransformPreview to not know GimpTransformTool any more
...
Instead, add drawable, transform, x1, y1 etc. properties. This is
cleaner and has the nice side effect of not leaving artifacts, because
the changed state of the transform tool doesn't affect the extents
calculation any longer.
2011-03-27 21:19:38 +02:00
1d9f95ac98
app: code cleanup and streamlining in GimpCanvasTransformPreview
2011-03-27 16:54:21 +02:00
f09be52c1b
app: turn the transform preview into a GimpCanvasItem
...
And remove all the complicated handling code entirely. This makes
GimpTransformTool a lot less complex. As a nice side effect, the
preview is now always 100% in sync with the grid and handles.
2011-03-27 16:40:41 +02:00