Previous 15994 Revisions Next

r9716 Friday 3rd December, 2010 at 20:36:27 UTC by Curt Coder
[QL] Fixed video.
[src/mess/video]zx8301.c

src/mess/video/zx8301.c
r9715r9716
295295
296296void zx8301_device::draw_line_mode4(bitmap_t *bitmap, int y, UINT16 da)
297297{
298   int x = 0;
299
298300   for (int word = 0; word < 64; word++)
299301   {
300302      UINT8 byte_high = readbyte(da++);
r9715r9716
302304
303305      for (int pixel = 0; pixel < 8; pixel++)
304306      {
305         int x = 0;
306307         int red = BIT(byte_low, 7);
307308         int green = BIT(byte_high, 7);
308309         int color = (green << 1) | red;
r9715r9716
322323
323324void zx8301_device::draw_line_mode8(bitmap_t *bitmap, int y, UINT16 da)
324325{
326   int x = 0;
327
325328   for (int word = 0; word < 64; word++)
326329   {
327330      UINT8 byte_high = readbyte(da++);
r9715r9716
329332
330333      for (int pixel = 0; pixel < 4; pixel++)
331334      {
332         int x = 0;
333335         int red = BIT(byte_low, 7);
334336         int green = BIT(byte_high, 7);
335337         int blue = BIT(byte_low, 6);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team