summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/video
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/video')
-rw-r--r--src/mess/video/733_asr.h2
-rw-r--r--src/mess/video/911_vdt.h2
-rw-r--r--src/mess/video/abc1600.c18
-rw-r--r--src/mess/video/abc1600.h2
-rw-r--r--src/mess/video/cirrus.h2
-rw-r--r--src/mess/video/gb_lcd.h2
-rw-r--r--src/mess/video/k1ge.h6
-rw-r--r--src/mess/video/nubus_m2video.c4
-rw-r--r--src/mess/video/pds30_procolor816.c2
-rw-r--r--src/mess/video/vtvideo.c102
10 files changed, 71 insertions, 71 deletions
diff --git a/src/mess/video/733_asr.h b/src/mess/video/733_asr.h
index 945a92b58b7..be568d579ad 100644
--- a/src/mess/video/733_asr.h
+++ b/src/mess/video/733_asr.h
@@ -24,7 +24,7 @@ public:
~asr733_device() { global_free(m_token); }
DECLARE_PALETTE_INIT(asr733);
-
+
// access to legacy token
void *token() const { assert(m_token != NULL); return m_token; }
protected:
diff --git a/src/mess/video/911_vdt.h b/src/mess/video/911_vdt.h
index f48d5cf80c1..5173d0cb29b 100644
--- a/src/mess/video/911_vdt.h
+++ b/src/mess/video/911_vdt.h
@@ -48,7 +48,7 @@ public:
~vdt911_device() { global_free(m_token); }
DECLARE_PALETTE_INIT(vdt911);
-
+
// access to legacy token
void *token() const { assert(m_token != NULL); return m_token; }
protected:
diff --git a/src/mess/video/abc1600.c b/src/mess/video/abc1600.c
index 117219c4426..1c4b60a7ebc 100644
--- a/src/mess/video/abc1600.c
+++ b/src/mess/video/abc1600.c
@@ -9,10 +9,10 @@
/*
- TODO:
+ TODO:
- - portrait/landscape detection is broken
- - bottom border is not respected
+ - portrait/landscape detection is broken
+ - bottom border is not respected
*/
@@ -257,12 +257,12 @@ machine_config_constructor abc1600_mover_device::device_mconfig_additions() cons
abc1600_mover_device::abc1600_mover_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, ABC1600_MOVER, "ABC 1600 Mover", tag, owner, clock, "abc1600mover", __FILE__),
- device_memory_interface(mconfig, *this),
- m_space_config("vram", ENDIANNESS_BIG, 16, 18, -1, *ADDRESS_MAP_NAME(mover_map)),
- m_crtc(*this, SY6845E_TAG),
- m_wrmsk_rom(*this, "wrmsk"),
- m_shinf_rom(*this, "shinf"),
- m_drmsk_rom(*this, "drmsk")
+ device_memory_interface(mconfig, *this),
+ m_space_config("vram", ENDIANNESS_BIG, 16, 18, -1, *ADDRESS_MAP_NAME(mover_map)),
+ m_crtc(*this, SY6845E_TAG),
+ m_wrmsk_rom(*this, "wrmsk"),
+ m_shinf_rom(*this, "shinf"),
+ m_drmsk_rom(*this, "drmsk")
{
}
diff --git a/src/mess/video/abc1600.h b/src/mess/video/abc1600.h
index 3b5b9158439..c023e14f319 100644
--- a/src/mess/video/abc1600.h
+++ b/src/mess/video/abc1600.h
@@ -36,7 +36,7 @@
// ======================> abc1600_mover_device
class abc1600_mover_device : public device_t,
- public device_memory_interface
+ public device_memory_interface
{
public:
// construction/destruction
diff --git a/src/mess/video/cirrus.h b/src/mess/video/cirrus.h
index f8f0e1e3d2e..65bd68477e1 100644
--- a/src/mess/video/cirrus.h
+++ b/src/mess/video/cirrus.h
@@ -22,7 +22,7 @@ public:
virtual UINT32 pci_read(pci_bus_device *pcibus, int function, int offset, UINT32 mem_mask);
virtual void pci_write(pci_bus_device *pcibus, int function, int offset, UINT32 data, UINT32 mem_mask);
-
+
DECLARE_WRITE8_MEMBER( cirrus_42E8_w );
protected:
diff --git a/src/mess/video/gb_lcd.h b/src/mess/video/gb_lcd.h
index 1ca596aab74..e2a2ea64bf7 100644
--- a/src/mess/video/gb_lcd.h
+++ b/src/mess/video/gb_lcd.h
@@ -36,7 +36,7 @@ struct layer_struct {
};
-class gb_lcd_device : public device_t,
+class gb_lcd_device : public device_t,
public device_video_interface
{
public:
diff --git a/src/mess/video/k1ge.h b/src/mess/video/k1ge.h
index 00c3045ea91..e9ed010f2c0 100644
--- a/src/mess/video/k1ge.h
+++ b/src/mess/video/k1ge.h
@@ -27,9 +27,9 @@ public:
DECLARE_WRITE8_MEMBER( reg_write );
DECLARE_READ8_MEMBER( vram_read );
DECLARE_WRITE8_MEMBER( vram_write );
-
+
DECLARE_PALETTE_INIT(k1ge);
-
+
void update( bitmap_ind16 &bitmap, const rectangle &cliprect );
// Static methods
@@ -66,7 +66,7 @@ class k2ge_device : public k1ge_device
{
public:
k2ge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
+
DECLARE_PALETTE_INIT(k2ge);
protected:
virtual machine_config_constructor device_mconfig_additions() const;
diff --git a/src/mess/video/nubus_m2video.c b/src/mess/video/nubus_m2video.c
index d99fe339067..8d2c94750fb 100644
--- a/src/mess/video/nubus_m2video.c
+++ b/src/mess/video/nubus_m2video.c
@@ -281,7 +281,7 @@ WRITE32_MEMBER( nubus_m2video_device::m2video_w )
break;
default:
-// printf("m2video_w: %08x @ %x, mask %08x (PC=%x)\n", data, offset, mem_mask, space.device().safe_pc());
+// printf("m2video_w: %08x @ %x, mask %08x (PC=%x)\n", data, offset, mem_mask, space.device().safe_pc());
break;
}
}
@@ -295,7 +295,7 @@ READ32_MEMBER( nubus_m2video_device::m2video_r )
}
else
{
-// printf("m2video_r: @ %x, mask %08x (PC=%x)\n", offset, mem_mask, space.device().safe_pc());
+// printf("m2video_r: @ %x, mask %08x (PC=%x)\n", offset, mem_mask, space.device().safe_pc());
}
return 0;
diff --git a/src/mess/video/pds30_procolor816.c b/src/mess/video/pds30_procolor816.c
index 759704bbfa2..96fc4bbfa5b 100644
--- a/src/mess/video/pds30_procolor816.c
+++ b/src/mess/video/pds30_procolor816.c
@@ -332,7 +332,7 @@ READ32_MEMBER( nubus_procolor816_device::procolor816_r )
}
else
{
-// printf("procolor816_r: @ %x, mask %08x [PC=%x]\n", offset, mem_mask, machine().device("maincpu")->safe_pc());
+// printf("procolor816_r: @ %x, mask %08x [PC=%x]\n", offset, mem_mask, machine().device("maincpu")->safe_pc());
}
return 0;
diff --git a/src/mess/video/vtvideo.c b/src/mess/video/vtvideo.c
index 2157e71ee4d..5a88875be9c 100644
--- a/src/mess/video/vtvideo.c
+++ b/src/mess/video/vtvideo.c
@@ -6,20 +6,20 @@
01/05/2009 Initial implementation [Miodrag Milanovic]
Sept. 2013 portions by Karl-Ludwig Deisenhofer.
- STATE OF DEC-100 VIDEO AS OF SEPTEMBER 2013
- -------------------------------------------
- - FURTHER TESTING: do line and character attributes match real hardware? Does soft scrolling work?
- - LIKELY INCORRECT : implementation of double size attribute in 132 columns mode (additional case)
+ STATE OF DEC-100 VIDEO AS OF SEPTEMBER 2013
+ -------------------------------------------
+ - FURTHER TESTING: do line and character attributes match real hardware? Does soft scrolling work?
+ - LIKELY INCORRECT : implementation of double size attribute in 132 columns mode (additional case)
- - MISSING: undocumented features of DC011 / DC012 - see public domain SQUEEZE.COM pokes:
- 0f00 => PORT 0C;
- 0b00 => PORT 0C;
- 1000 => PORT 04
- (SQUEEZE compresses the display in X and Y direction on a real DEC-100 B)
+ - MISSING: undocumented features of DC011 / DC012 - see public domain SQUEEZE.COM pokes:
+ 0f00 => PORT 0C;
+ 0b00 => PORT 0C;
+ 1000 => PORT 04
+ (SQUEEZE compresses the display in X and Y direction on a real DEC-100 B)
- - IMPROVEMENTS:
- - find a more realistic approach for intensity control (bold attribute)
- - correct phosphor colors (green, white and amber monitors were common)
+ - IMPROVEMENTS:
+ - find a more realistic approach for intensity control (bold attribute)
+ - correct phosphor colors (green, white and amber monitors were common)
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
@@ -122,7 +122,7 @@ void vt100_video_device::device_reset()
{
palette_set_color_rgb(machine(), 0, 0x00, 0x00, 0x00); // black
palette_set_color_rgb(machine(), 1, 0xff, 0xff, 0xff); // white
-
+
m_height = 25;
m_height_MAX = 25;
@@ -149,7 +149,7 @@ void rainbow_video_device::device_reset()
m_height = 24; // <---- DEC-100
m_height_MAX = 48;
-
+
m_lba7 = 0;
m_scroll_latch = 0;
@@ -181,7 +181,7 @@ void vt100_video_device::recompute_parameters()
} else {
horiz_pix_total = m_columns * 10; // normal 80 character mode.
}
-
+
visarea.set(0, horiz_pix_total - 1, 0, vert_pix_total - 1);
m_screen->configure(horiz_pix_total, vert_pix_total, visarea, m_screen->frame_period().attoseconds);
@@ -238,31 +238,31 @@ WRITE8_MEMBER( vt100_video_device::dc012_w )
// set basic attribute to reverse video / blink flip-flop off
m_basic_attribute = 1;
m_blink_flip_flop = 0;
-
- if (m_height_MAX == 25) break; // VT 100.
- if (m_height != 24)
+ if (m_height_MAX == 25) break; // VT 100.
+
+ if (m_height != 24)
{
- m_height = 24; // (DEC Rainbow 100) : 24 line display
+ m_height = 24; // (DEC Rainbow 100) : 24 line display
recompute_parameters();
- }
+ }
break;
case 0x0e:
- break; // (DC12) : 'not supported'
+ break; // (DC12) : 'not supported'
case 0x0f:
// (DEC Rainbow 100) : set basic attribute to reverse video / blink flip-flop off
m_basic_attribute = 1;
m_blink_flip_flop = 0;
- if (m_height_MAX == 25) break; // VT 100.
+ if (m_height_MAX == 25) break; // VT 100.
if (m_height != 48)
{
- m_height = 48; // (DEC Rainbow 100) : 48 line display
+ m_height = 48; // (DEC Rainbow 100) : 48 line display
recompute_parameters();
- }
+ }
break;
}
}
@@ -440,12 +440,12 @@ void rainbow_video_device::display_char(bitmap_ind16 &bitmap, UINT8 code, int x,
{
UINT8 xsize, d_xsize;
if (m_columns == 132)
- { xsize = 9;
- d_xsize = 18;
+ { xsize = 9;
+ d_xsize = 18;
} else
{
- xsize = 10;
- d_xsize = 20;
+ xsize = 10;
+ d_xsize = 20;
}
UINT8 line = 0;
@@ -475,13 +475,13 @@ void rainbow_video_device::display_char(bitmap_ind16 &bitmap, UINT8 code, int x,
line = m_gfx[code * 16 + j];
- if ( i == 8 )
- {
- if ( underline != 0 ) line = 0xff;
+ if ( i == 8 )
+ {
+ if ( underline != 0 ) line = 0xff;
}
// Code to handle basic attribute from VT-100
- if ( m_basic_attribute == 1 )
+ if ( m_basic_attribute == 1 )
{
if ((code & 0x80) == 0x80)
invert = 1;
@@ -489,15 +489,15 @@ void rainbow_video_device::display_char(bitmap_ind16 &bitmap, UINT8 code, int x,
invert = 0;
}
- if (m_blink_flip_flop > 0)
+ if (m_blink_flip_flop > 0)
{
- if ( blink != 0 )
- {
- line = line ^ 0xff;
- }
+ if ( blink != 0 )
+ {
+ line = line ^ 0xff;
+ }
}
- if (invert != 0)
- line = line ^ 0xff;
+ if (invert != 0)
+ line = line ^ 0xff;
for (int b = 0; b < 8; b++)
{
@@ -519,7 +519,7 @@ void rainbow_video_device::display_char(bitmap_ind16 &bitmap, UINT8 code, int x,
{
bitmap.pix16(y * 10 + i, x * d_xsize + 16) = bit;
bitmap.pix16(y * 10 + i, x * d_xsize + 17) = bit;
- bitmap.pix16(y * 10 + i, x * d_xsize + 18) = bit;
+ bitmap.pix16(y * 10 + i, x * d_xsize + 18) = bit;
bitmap.pix16(y * 10 + i, x * d_xsize + 19) = bit;
}
else
@@ -567,14 +567,14 @@ void rainbow_video_device::video_update(bitmap_ind16 &bitmap, const rectangle &c
addr = (temp) & 0x0fff;
attr_addr = ((temp) & 0x1fff) - 2;
- // No AVO here.
- attr_addr |= 0x1000;
+ // No AVO here.
+ attr_addr |= 0x1000;
if (attr_addr > 0x2000) // Ignore attributes beyond 8192 byte limit (SRAM).
{
scroll_region = 1; // binary 1 <- SET DEFAULTS
display_type = 3; // binary 111
- } else
- {
+ } else
+ {
temp = m_in_ram_func(attr_addr);
scroll_region = (temp) & 1;
display_type = (temp >> 1) & 3;
@@ -589,22 +589,22 @@ void rainbow_video_device::video_update(bitmap_ind16 &bitmap, const rectangle &c
}
else
{
- // display regular char
+ // display regular char
if (line >= m_skip_lines)
{
attr_addr = 0x1000 | ( (addr + xpos) & 0x0fff );
temp = m_in_ram_func(attr_addr); // get character attribute
- // TODO: check if reverse bit is treated the same way on real hardware
+ // TODO: check if reverse bit is treated the same way on real hardware
// 1 = display char. in REVERSE (encoded as 8)
// 0 = display char. in BOLD (encoded as 16)
// 0 = display char. w. BLINK (encoded as 32)
- // 0 = display char. w. UNDERLINE (encoded as 64).
+ // 0 = display char. w. UNDERLINE (encoded as 64).
display_char(bitmap, code, xpos, ypos, scroll_region, display_type | ( ( (temp & 1)) << 3 )
- | ( (2-(temp & 2)) << 3 )
- | ( (4-(temp & 4)) << 3 )
- | ( (8-(temp & 8)) << 3 )
- );
+ | ( (2-(temp & 2)) << 3 )
+ | ( (4-(temp & 4)) << 3 )
+ | ( (8-(temp & 8)) << 3 )
+ );
}
xpos++;
if (xpos > m_columns)