Previous 15994 Revisions Next

r1860 Saturday 8th March, 2008 at 14:27:20 UTC by Wilbert Pol
[CBMB] Added cursor drawing code.
[src/mess/video]cbmb.c

src/mess/video/cbmb.c
r1859r1860
8888   int i;
8989
9090   for( i = 0; i < x_count; i++ ) {
91//      if ( ma + i == cursor_ma ) {
92//         plot_box( bitmap, machine->gfx[cbmb_font]->width * i, y, machine->gfx[cbmb_font]->width, 1, machine->pens[1] );
93//      } else {
91      if ( i == cursor_x ) {
92         plot_box( bitmap, machine->gfx[cbmb_font]->width * i, y, machine->gfx[cbmb_font]->width, 1, machine->pens[1] );
93      } else {
9494         drawgfx( bitmap, machine->gfx[cbmb_font], videoram[(ma+i )& 0x7ff], 0, 0, 0, machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 );
95//      }
95      }
9696   }
9797}
9898
r1859r1860
101101   int i;
102102
103103   for( i = 0; i < x_count; i++ ) {
104//      if ( ma + i == cursor_ma ) {
105//         plot_box( bitmap, machine->gfx[cbmb_font]->width * i, y, machine->gfx[cbmb_font]->width, 1, machine->pens[1] );
106//      } else {
104      if ( i == cursor_x ) {
105         plot_box( bitmap, machine->gfx[cbmb_font]->width * i, y, machine->gfx[cbmb_font]->width, 1, machine->pens[1] );
106      } else {
107107         drawgfx( bitmap, machine->gfx[cbmb_font], videoram[(ma+i) & 0x7ff], 0, 0, 0, machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 );
108//      }
108      }
109109   }
110110}
111111

Previous 15994 Revisions Next


© 1998-2018 The MESS Team