summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/video/apple2.c
diff options
context:
space:
mode:
author Oliver Stöneberg <oliverst@online.de>2014-11-18 09:41:06 +0100
committer Oliver Stöneberg <oliverst@online.de>2014-11-18 09:41:06 +0100
commitc2a2ebf17aa0ae47bac9124cc66fbe4c7a0b9283 (patch)
tree757f398706a7530ce9e677f70fd0474ea3177395 /src/mess/video/apple2.c
parent942fc4083208b642c53956c80be84639d1074663 (diff)
fixed Visual Studio warning about potentially uninitialized value in src/mess/video/apple2.c (nw)
Diffstat (limited to 'src/mess/video/apple2.c')
-rw-r--r--src/mess/video/apple2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mess/video/apple2.c b/src/mess/video/apple2.c
index 2f01465999f..eb0e394c564 100644
--- a/src/mess/video/apple2.c
+++ b/src/mess/video/apple2.c
@@ -848,7 +848,7 @@ void a2_video_device::lores_update(screen_device &screen, bitmap_ind16 &bitmap,
UINT8 code;
UINT32 start_address = m_page2 ? 0x0800 : 0x0400;
UINT32 address;
- int fg;
+ int fg = 0;
switch (m_sysconfig & 0x03)
{
@@ -930,7 +930,7 @@ void a2_video_device::dlores_update(screen_device &screen, bitmap_ind16 &bitmap,
UINT32 start_address = m_page2 ? 0x0800 : 0x0400;
UINT32 address;
static const int aux_colors[16] = { 0, 2, 4, 6, 8, 0xa, 0xc, 0xe, 1, 3, 5, 7, 9, 0xb, 0xd, 0xf };
- int fg;
+ int fg = 0;
switch (m_sysconfig & 0x03)
{
@@ -1071,7 +1071,7 @@ void a2_video_device::text_update(screen_device &screen, bitmap_ind16 &bitmap, c
UINT32 start_address;
UINT32 address;
UINT8 *aux_page = m_ram_ptr;
- int fg;
+ int fg = 0;
int bg = 0;
if (m_80col)
@@ -1131,7 +1131,7 @@ void a2_video_device::text_update_orig(screen_device &screen, bitmap_ind16 &bitm
int row, col;
UINT32 start_address = m_page2 ? 0x800 : 0x400;
UINT32 address;
- int fg;
+ int fg = 0;
int bg = 0;
beginrow = MAX(beginrow, cliprect.min_y - (cliprect.min_y % 8));