use the same code on all platforms. The optimization for bytes == 4 was

2006-09-21  Sven Neumann  <neumann@jpk.com>

	* app/base/tile-manager.c (read_pixel_data_1) (write_pixel_data_1):
	use the same code on all platforms. The optimization for bytes == 4
	was pointless anyway.
This commit is contained in:
Sven Neumann
2006-09-21 09:45:07 +00:00
committed by Sven Neumann
parent aaffc09cd4
commit 26ecfe60b7
2 changed files with 6 additions and 10 deletions

View File

@ -1,3 +1,9 @@
2006-09-21 Sven Neumann <neumann@jpk.com>
* app/base/tile-manager.c (read_pixel_data_1) (write_pixel_data_1):
use the same code on all platforms. The optimization for bytes == 4
was pointless anyway.
2006-09-21 Michael Natterer <mitch@gimp.org>
* app/base/tile-manager.c (read_pixel_data_1): fix build on

View File

@ -828,12 +828,7 @@ read_pixel_data_1 (TileManager *tm,
switch (tm->bpp)
{
case 4:
#if (G_BYTE_ORDER == G_LITTLE_ENDIAN)
*(guint32 *) buffer = *(const guint32 *) src;
break;
#else
*buffer++ = *src++;
#endif
case 3:
*buffer++ = *src++;
case 2:
@ -857,12 +852,7 @@ write_pixel_data_1 (TileManager *tm,
switch (tm->bpp)
{
case 4:
#if (G_BYTE_ORDER == G_LITTLE_ENDIAN)
*(guint32 *) dest = *(const guint32 *) buffer;
break;
#else
*dest++ = *buffer++;
#endif
case 3:
*dest++ = *buffer++;
case 2: