View | Details | Raw Unified | Return to bug 652562
Collapse All | Expand All

(-)desktop/unx/source/splashx.c.old (-1 / +2 lines)
Lines 333-338 static void create_pixmap() Link Here
333
            int x, y; \
333
            int x, y; \
334
            for ( y = 0; y < height; ++y ) \
334
            for ( y = 0; y < height; ++y ) \
335
            { \
335
            { \
336
                out = data + y * bytes_per_line; \
336
                unsigned long red_delta = 0, green_delta = 0, blue_delta = 0; \
337
                unsigned long red_delta = 0, green_delta = 0, blue_delta = 0; \
337
                color_t *in = (color_t *)bitmap_rows[y]; \
338
                color_t *in = (color_t *)bitmap_rows[y]; \
338
                for ( x = 0; x < width; ++x, ++in  ) \
339
                for ( x = 0; x < width; ++x, ++in  ) \
Lines 376-382 static void create_pixmap() Link Here
376
        {
376
        {
377
            if ( machine_byte_order == byte_order && byte_order == LSBFirst )
377
            if ( machine_byte_order == byte_order && byte_order == LSBFirst )
378
                COPY_IN_OUT( 3, *( (color_t *)out ) = *( (color_t *)( &pixel ) ); out += 3; )
378
                COPY_IN_OUT( 3, *( (color_t *)out ) = *( (color_t *)( &pixel ) ); out += 3; )
379
            if ( machine_byte_order == byte_order && byte_order == MSBFirst )
379
            else if ( machine_byte_order == byte_order && byte_order == MSBFirst )
380
                COPY_IN_OUT( 3, uint32_t tmp = pixel;
380
                COPY_IN_OUT( 3, uint32_t tmp = pixel;
381
                             *( (uint8_t *)out     ) = *( (uint8_t *)(&tmp) + 1 );
381
                             *( (uint8_t *)out     ) = *( (uint8_t *)(&tmp) + 1 );
382
                             *( (uint8_t *)out + 1 ) = *( (uint8_t *)(&tmp) + 2 );
382
                             *( (uint8_t *)out + 1 ) = *( (uint8_t *)(&tmp) + 2 );

Return to bug 652562