Index: hw/cirrus_vga_rop2.h =================================================================== RCS file: /cvsroot/qemu/qemu/hw/cirrus_vga_rop2.h,v retrieving revision 1.3 diff -u -r1.3 cirrus_vga_rop2.h --- hw/cirrus_vga_rop2.h 9 Jun 2004 23:12:09 -0000 1.3 +++ hw/cirrus_vga_rop2.h 30 Jun 2004 02:14:41 -0000 @@ -52,6 +52,8 @@ pattern_pitch = 8; #elif DEPTH == 16 pattern_pitch = 16; +#elif DEPTH == 24 + pattern_pitch = 24; #else pattern_pitch = 32; #endif @@ -67,6 +69,10 @@ #elif DEPTH == 16 col = ((uint16_t *)(src1 + pattern_x))[0]; pattern_x = (pattern_x + 2) & 15; +#elif DEPTH == 24 + col = ((uint16_t *)(src1 + pattern_x))[0]; + col |= src1[pattern_x + 2] << 16; + pattern_x = (pattern_x + 3) % 24; #else col = ((uint32_t *)(src1 + pattern_x))[0]; pattern_x = (pattern_x + 4) & 31;