src/mess/video/fmtowns.c
| r9280 | r9281 | |
| 1166 | 1166 | { |
| 1167 | 1167 | for(x=rect->min_x;x<rect->max_x;x++) |
| 1168 | 1168 | { |
| 1169 | if(state->video.towns_video_reg[0] & 0x10) |
| 1170 | off &= 0x3ffff; // 2 layers |
| 1171 | else |
| 1172 | off &= 0x7ffff; // 1 layer |
| 1169 | 1173 | colour = state->towns_gfxvram[off+(layer*0x40000)]; |
| 1170 | 1174 | if(colour != 0) |
| 1171 | 1175 | { |
| r9280 | r9281 | |
| 1182 | 1186 | { // x2 horizontal zoom |
| 1183 | 1187 | for(x=rect->min_x;x<rect->max_x;x+=2) |
| 1184 | 1188 | { |
| 1189 | if(state->video.towns_video_reg[0] & 0x10) |
| 1190 | off &= 0x3ffff; // 2 layers |
| 1191 | else |
| 1192 | off &= 0x7ffff; // 1 layer |
| 1185 | 1193 | colour = state->towns_gfxvram[off+(layer*0x40000)+1]; |
| 1186 | 1194 | if(colour != 0) |
| 1187 | 1195 | { |
| r9280 | r9281 | |
| 1202 | 1210 | { // x3 horizontal zoom |
| 1203 | 1211 | for(x=rect->min_x;x<rect->max_x;x+=3) |
| 1204 | 1212 | { |
| 1213 | if(state->video.towns_video_reg[0] & 0x10) |
| 1214 | off &= 0x3ffff; // 2 layers |
| 1215 | else |
| 1216 | off &= 0x7ffff; // 1 layer |
| 1205 | 1217 | colour = state->towns_gfxvram[off+(layer*0x40000)+1]; |
| 1206 | 1218 | if(colour != 0) |
| 1207 | 1219 | { |
| r9280 | r9281 | |
| 1226 | 1238 | { // x4 horizontal zoom |
| 1227 | 1239 | for(x=rect->min_x;x<rect->max_x;x+=4) |
| 1228 | 1240 | { |
| 1241 | if(state->video.towns_video_reg[0] & 0x10) |
| 1242 | off &= 0x3ffff; // 2 layers |
| 1243 | else |
| 1244 | off &= 0x7ffff; // 1 layer |
| 1229 | 1245 | colour = state->towns_gfxvram[off+(layer*0x40000)+1]; |
| 1230 | 1246 | if(colour != 0) |
| 1231 | 1247 | { |
| r9280 | r9281 | |
| 1254 | 1270 | { // x5 horizontal zoom |
| 1255 | 1271 | for(x=rect->min_x;x<rect->max_x;x+=5) |
| 1256 | 1272 | { |
| 1273 | if(state->video.towns_video_reg[0] & 0x10) |
| 1274 | off &= 0x3ffff; // 2 layers |
| 1275 | else |
| 1276 | off &= 0x7ffff; // 1 layer |
| 1257 | 1277 | colour = state->towns_gfxvram[off+(layer*0x40000)+1]; |
| 1258 | 1278 | if(colour != 0) |
| 1259 | 1279 | { |
| r9280 | r9281 | |
| 1337 | 1357 | { |
| 1338 | 1358 | for(x=rect->min_x;x<rect->max_x;x+=2) |
| 1339 | 1359 | { |
| 1360 | if(state->video.towns_video_reg[0] & 0x10) |
| 1361 | off &= 0x3ffff; // 2 layers |
| 1362 | else |
| 1363 | off &= 0x7ffff; // 1 layer |
| 1340 | 1364 | colour = state->towns_gfxvram[off+(layer*0x40000)] >> 4; |
| 1341 | 1365 | if(colour != 0) |
| 1342 | 1366 | { |