src/mess/video/pc1401.c
| r2054 | r2055 | |
| 138 | 138 | int x, y, i, j; |
| 139 | 139 | int color[2]; |
| 140 | 140 | |
| 141 | | bitmap_fill(bitmap, cliprect, 5); |
| 141 | bitmap_fill(bitmap, cliprect, 11); |
| 142 | 142 | |
| 143 | 143 | /* HJB: we cannot initialize array with values from other arrays, thus... */ |
| 144 | | color[0] = screen->machine->pens[pocketc_colortable[CONTRAST][0]]; |
| 145 | | color[1] = screen->machine->pens[pocketc_colortable[CONTRAST][1]]; |
| 144 | color[0] = pocketc_colortable[CONTRAST][0]; |
| 145 | color[1] = pocketc_colortable[CONTRAST][1]; |
| 146 | 146 | |
| 147 | 147 | if (pc1401_portc&1) { |
| 148 | 148 | for (x=RIGHT,y=DOWN,i=0; i<0x28;x+=2) { |
src/mess/video/pc1350.c
| r2054 | r2055 | |
| 135 | 135 | int x, y, i, j, k, b; |
| 136 | 136 | int color[2]; |
| 137 | 137 | |
| 138 | | bitmap_fill(bitmap, cliprect, 5); |
| 138 | bitmap_fill(bitmap, cliprect, 11); |
| 139 | 139 | |
| 140 | 140 | /* HJB: we cannot initialize array with values from other arrays, thus... */ |
| 141 | | color[0] = screen->machine->pens[pocketc_colortable[PC1350_CONTRAST][0]]; |
| 142 | | color[1] = screen->machine->pens[pocketc_colortable[PC1350_CONTRAST][1]]; |
| 141 | color[0] = pocketc_colortable[PC1350_CONTRAST][0]; |
| 142 | color[1] = pocketc_colortable[PC1350_CONTRAST][1]; |
| 143 | 143 | |
| 144 | 144 | for (k=0, y=DOWN; k<4; y+=16,k++) |
| 145 | 145 | { |
| r2054 | r2055 | |
| 149 | 149 | { |
| 150 | 150 | for (b = 0; b < 8; b++) |
| 151 | 151 | { |
| 152 | | plot_box(bitmap, x, y + b * 2, 2, 2, |
| 153 | | color[(pc1350_lcd.reg[j+i] >> b) & 1]); |
| 152 | plot_box(bitmap, x, y + b * 2, 2, 2, color[(pc1350_lcd.reg[j+i] >> b) & 1]<<3); |
| 154 | 153 | } |
| 155 | 154 | } |
| 156 | 155 | } |
src/mess/video/pocketc.c
| r2054 | r2055 | |
| 58 | 58 | |
| 59 | 59 | void pocketc_draw_special(bitmap_t *bitmap, int x, int y, const POCKETC_FIGURE fig, int color) |
| 60 | 60 | { |
| 61 | UINT8 color_pen[] = { 8,8,8,8,7,7,7,7 }; |
| 61 | 62 | int i,j; |
| 62 | 63 | for (i=0; fig[i]; i++, y++) |
| 63 | 64 | { |
| r2054 | r2055 | |
| 66 | 67 | switch(fig[i][j]) |
| 67 | 68 | { |
| 68 | 69 | case '1': |
| 69 | | *BITMAP_ADDR16(bitmap, y, x+j) = color<<2; |
| 70 | *BITMAP_ADDR16(bitmap, y, x+j) = color_pen[color]; |
| 70 | 71 | break; |
| 71 | 72 | case 'e': |
| 72 | 73 | return; |
src/mess/video/pc1403.c
| r2054 | r2055 | |
| 158 | 158 | int x, y, i, j; |
| 159 | 159 | int color[3]; |
| 160 | 160 | |
| 161 | | bitmap_fill(bitmap, cliprect, 5); |
| 161 | bitmap_fill(bitmap, cliprect, 11); |
| 162 | 162 | |
| 163 | 163 | /* HJB: we cannot initialize array with values from other arrays, thus... */ |
| 164 | | color[0] = screen->machine->pens[pocketc_colortable[CONTRAST][0]]; |
| 165 | | color[2] = screen->machine->pens[pocketc_colortable[CONTRAST][1]]; |
| 164 | color[0] = pocketc_colortable[CONTRAST][0]; |
| 165 | color[2] = pocketc_colortable[CONTRAST][1]; |
| 166 | 166 | color[1] = (pc1403_portc&1) ? color[2] : color[0]; |
| 167 | 167 | |
| 168 | 168 | if (pc1403_portc&1) { |
| r2054 | r2055 | |
| 203 | 203 | 0, TRANSPARENCY_NONE,0); |
| 204 | 204 | } |
| 205 | 205 | } |
| 206 | | /* if display is off, busy is always visible? it seems to behave like |
| 207 | | that. */ |
| 206 | /* if display is off, busy is always visible? it seems to behave like that. */ |
| 208 | 207 | /* But if computer is off, busy is hidden. */ |
| 209 | 208 | if(!(pc1403_portc&8)) |
| 210 | 209 | {if (pc1403_portc&1) pocketc_draw_special(bitmap,RIGHT,DOWN-13,busy, |
src/mess/video/pc1251.c
| r2054 | r2055 | |
| 121 | 121 | int x, y, i, j; |
| 122 | 122 | int color[2]; |
| 123 | 123 | |
| 124 | | bitmap_fill(bitmap, cliprect, 5); |
| 124 | bitmap_fill(bitmap, cliprect, 11); |
| 125 | 125 | |
| 126 | 126 | /* HJB: we cannot initialize array with values from other arrays, thus... */ |
| 127 | | color[0] = screen->machine->pens[pocketc_colortable[PC1251_CONTRAST][0]]; |
| 128 | | color[1] = screen->machine->pens[pocketc_colortable[PC1251_CONTRAST][1]]; |
| 127 | color[0] = pocketc_colortable[PC1251_CONTRAST][0]; |
| 128 | color[1] = pocketc_colortable[PC1251_CONTRAST][1]; |
| 129 | 129 | |
| 130 | 130 | for (x=RIGHT,y=DOWN,i=0; i<60;x+=3) { |
| 131 | 131 | for (j=0; j<5;j++,i++,x+=3) |