Pedro Gimeno Fortea
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
Michael Natterer
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
Michael Natterer
736eb26637
app: port GimpCanvasTransformPreview to gegl_buffer_sample()
2012-05-02 17:51:11 +02:00
Mukund Sivaraman
d9f1a9eec6
app: Drop redundant assignment
2011-10-12 19:02:49 +05:30
Mukund Sivaraman
6e4a5b1996
app (display): Drop redundant assignments
2011-10-11 10:29:55 +05:30
Martin Nordholts
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
Michael Natterer
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
Massimo Valentini
1371602383
app: call cairo_surface_flush before drawing directly
2011-05-26 20:17:08 +02:00
Michael Natterer
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
Michael Natterer
fde934ac58
app: s/GdkRectangle/cairo_rectangle_int_t/ in all GimpCanvasItems
2011-04-10 18:15:16 +02:00
Michael Natterer
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
Michael Natterer
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
Michael Natterer
1d9f95ac98
app: code cleanup and streamlining in GimpCanvasTransformPreview
2011-03-27 16:54:21 +02:00
Michael Natterer
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