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:
committed by
Sven Neumann
parent
aaffc09cd4
commit
26ecfe60b7
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user