gimp r26439 - trunk/app/base
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26439 - trunk/app/base
- Date: Fri, 8 Aug 2008 11:00:29 +0000 (UTC)
Author: neo
Date: Fri Aug 8 11:00:29 2008
New Revision: 26439
URL: http://svn.gnome.org/viewvc/gimp?rev=26439&view=rev
Log:
simplified tile_manager_map_tile()
Modified:
trunk/app/base/tile-manager.c
Modified: trunk/app/base/tile-manager.c
==============================================================================
--- trunk/app/base/tile-manager.c (original)
+++ trunk/app/base/tile-manager.c Fri Aug 8 11:00:29 2008
@@ -395,20 +395,12 @@
gint ypixel,
Tile *srctile)
{
- gint num;
-
g_return_if_fail (tm != NULL);
g_return_if_fail (srctile != NULL);
- num = tile_manager_get_tile_num (tm, xpixel, ypixel);
-
- if (G_UNLIKELY (num < 0))
- {
- g_warning ("%s: tile coordinates out of range.", G_STRLOC);
- return;
- }
-
- tile_manager_map (tm, num, srctile);
+ tile_manager_map (tm,
+ tile_manager_get_tile_num (tm, xpixel, ypixel),
+ srctile);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]