summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mindset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mindset.cpp')
-rw-r--r--src/mame/drivers/mindset.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/mame/drivers/mindset.cpp b/src/mame/drivers/mindset.cpp
index 279ad92bbf8..d11e5291420 100644
--- a/src/mame/drivers/mindset.cpp
+++ b/src/mame/drivers/mindset.cpp
@@ -751,12 +751,12 @@ u32 mindset_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, co
if(ibm_mode) {
if(large_pixels) {
- static int palind[4] = { 0, 1, 4, 5 };
+ static int const palind[4] = { 0, 1, 4, 5 };
for(int field=0; field<2; field++) {
for(u32 yy=0; yy<2; yy++) {
const u16 *src = bank + 4096*yy;
for(u32 y=yy; y<200; y+=2) {
- u32 *dest = &bitmap.pix32(2*y+field+dy, dx);
+ u32 *dest = &bitmap.pix(2*y+field+dy, dx);
for(u32 x=0; x<320; x+=8) {
u16 sv = sw(*src++);
for(u32 xx=0; xx<8; xx++) {
@@ -770,12 +770,12 @@ u32 mindset_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, co
}
return 0;
} else {
- static int palind[4] = { 0, 4 };
+ static int const palind[2] = { 0, 4 };
for(int field=0; field<2; field++) {
for(u32 yy=0; yy<2; yy++) {
const u16 *src = bank + 4096*yy;
for(u32 y=yy; y<200; y+=2) {
- u32 *dest = &bitmap.pix32(2*y+field+dy, dx);
+ u32 *dest = &bitmap.pix(2*y+field+dy, dx);
for(u32 x=0; x<640; x+=16) {
u16 sv = sw(*src++);
for(u32 xx=0; xx<16; xx++) {
@@ -795,8 +795,8 @@ u32 mindset_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, co
case 0: {
const u16 *src = bank;
for(u32 y=0; y<200; y++) {
- u32 *dest0 = &bitmap.pix32(2*y+dy, dx);
- u32 *dest1 = &bitmap.pix32(2*y+1+dy, dx);
+ u32 *dest0 = &bitmap.pix(2*y+dy, dx);
+ u32 *dest1 = &bitmap.pix(2*y+1+dy, dx);
for(u32 x=0; x<320; x+=4) {
u16 sv = sw(*src++);
for(u32 xx=0; xx<4; xx++) {
@@ -811,11 +811,11 @@ u32 mindset_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, co
return 0;
}
case 1: {
- static int palind[4] = { 0, 1, 4, 5 };
+ static int const palind[4] = { 0, 1, 4, 5 };
const u16 *src = bank;
for(u32 y=0; y<200; y++) {
- u32 *dest0 = &bitmap.pix32(2*y+dy, dx);
- u32 *dest1 = &bitmap.pix32(2*y+1+dy, dx);
+ u32 *dest0 = &bitmap.pix(2*y+dy, dx);
+ u32 *dest1 = &bitmap.pix(2*y+1+dy, dx);
for(u32 x=0; x<320; x+=8) {
u16 sv = sw(*src++);
for(u32 xx=0; xx<8; xx++) {
@@ -832,8 +832,8 @@ u32 mindset_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, co
case 2: {
const u16 *src = bank;
for(u32 y=0; y<200; y++) {
- u32 *dest0 = &bitmap.pix32(2*y+dy, dx);
- u32 *dest1 = &bitmap.pix32(2*y+1+dy, dx);
+ u32 *dest0 = &bitmap.pix(2*y+dy, dx);
+ u32 *dest1 = &bitmap.pix(2*y+1+dy, dx);
for(u32 x=0; x<320; x+=16) {
u16 sv = sw(*src++);
for(u32 xx=0; xx<16; xx++) {
@@ -853,7 +853,7 @@ u32 mindset_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, co
case 0: {
const u16 *src = bank;
for(u32 y=0; y<400; y++) {
- u32 *dest = &bitmap.pix32(y+dy, dx);
+ u32 *dest = &bitmap.pix(y+dy, dx);
for(u32 x=0; x<320; x+=4) {
u16 sv = sw(*src++);
for(u32 xx=0; xx<4; xx++) {
@@ -866,10 +866,10 @@ u32 mindset_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, co
return 0;
}
case 1: {
- static int palind[4] = { 0, 1, 4, 5 };
+ static int const palind[4] = { 0, 1, 4, 5 };
const u16 *src = bank;
for(u32 y=0; y<400; y++) {
- u32 *dest = &bitmap.pix32(y+dy, dx);
+ u32 *dest = &bitmap.pix(y+dy, dx);
for(u32 x=0; x<320; x+=8) {
u16 sv = sw(*src++);
for(u32 xx=0; xx<8; xx++) {
@@ -887,11 +887,11 @@ u32 mindset_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, co
if(!interleave) {
switch(pixels_per_byte_order) {
case 0: {
- static int palind[4] = { 0, 4, 8, 12 };
+ static int const palind[4] = { 0, 4, 8, 12 };
const u16 *src = bank;
for(u32 y=0; y<200; y++) {
- u32 *dest0 = &bitmap.pix32(2*y+dy, dx);
- u32 *dest1 = &bitmap.pix32(2*y+1+dy, dx);
+ u32 *dest0 = &bitmap.pix(2*y+dy, dx);
+ u32 *dest1 = &bitmap.pix(2*y+1+dy, dx);
for(u32 x=0; x<640; x+=8) {
u16 sv = sw(*src++);
for(u32 xx=0; xx<8; xx++) {
@@ -904,11 +904,11 @@ u32 mindset_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, co
return 0;
}
case 1: {
- static int palind[4] = { 0, 4 };
+ static int const palind[2] = { 0, 4 };
const u16 *src = bank;
for(u32 y=0; y<200; y++) {
- u32 *dest0 = &bitmap.pix32(2*y+dy, dx);
- u32 *dest1 = &bitmap.pix32(2*y+1+dy, dx);
+ u32 *dest0 = &bitmap.pix(2*y+dy, dx);
+ u32 *dest1 = &bitmap.pix(2*y+1+dy, dx);
for(u32 x=0; x<640; x+=16) {
u16 sv = sw(*src++);
for(u32 xx=0; xx<16; xx++) {
@@ -922,10 +922,10 @@ u32 mindset_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, co
}
}
} else {
- static int palind[4] = { 0, 4 };
+ static int const palind[2] = { 0, 4 };
const u16 *src = bank;
for(u32 y=0; y<400; y++) {
- u32 *dest = &bitmap.pix32(y+dy, dx);
+ u32 *dest = &bitmap.pix(y+dy, dx);
for(u32 x=0; x<640; x+=16) {
u16 sv = sw(*src++);
for(u32 xx=0; xx<16; xx++) {