some Visual Studio 2019 fixes (nw)

This commit is contained in:
smf- 2019-09-29 20:07:21 +01:00
parent 3694c847bf
commit 9b5e0386fe
15 changed files with 27 additions and 14 deletions

View File

@ -41,7 +41,6 @@
**********************************************************************/
#include "emu.h"
#include "screen.h"
#include "ctrl.h"
// slot devices
#include "4score.h"

View File

@ -17,6 +17,8 @@
#pragma once
#include "screen.h"
//**************************************************************************
// TYPE DEFINITIONS

View File

@ -12,6 +12,8 @@
#ifndef MAME_BUS_SMS_CTRL_SMSCTRL_H
#define MAME_BUS_SMS_CTRL_SMSCTRL_H
#include "screen.h"
#pragma once

View File

@ -324,7 +324,7 @@ READ8_MEMBER(mb9061x_device::tbtc_r)
WRITE8_MEMBER(mb9061x_device::tbtc_w)
{
static const float periods[4] = { 1.024, 4.096, 16.384, 131.072 };
static const float periods[4] = { 1.024f, 4.096f, 16.384f, 131.072f };
//printf("%02x to TBTC\n", data);
// if ((!(data & TBTC_TBR)) || ((data & (TBTC_TBC1|TBTC_TBC0)) != (m_tbtc & (TBTC_TBC1|TBTC_TBC0))))

View File

@ -372,8 +372,8 @@ inline void acorn_vidc10_device::refresh_stereo_image(uint8_t channel)
-001 full left
-000 "undefined" TODO: verify what it actually means
*/
const float left_gain[8] = { 1.0, 2.0, 1.66, 1.34, 1.0, 0.66, 0.34, 0.0 };
const float right_gain[8] = { 1.0, 0.0, 0.34, 0.66, 1.0, 1.34, 1.66, 2.0 };
const float left_gain[8] = { 1.0f, 2.0f, 1.66f, 1.34f, 1.0f, 0.66f, 0.34f, 0.0f };
const float right_gain[8] = { 1.0f, 0.0f, 0.34f, 0.66f, 1.0f, 1.34f, 1.66f, 2.0f };
m_lspeaker->set_input_gain(channel,left_gain[m_stereo_image[channel]]*m_sound_input_gain);
m_rspeaker->set_input_gain(channel,right_gain[m_stereo_image[channel]]*m_sound_input_gain);

View File

@ -114,7 +114,7 @@ private:
bool m_sound_frequency_test_bit;
bool m_sound_mode;
u8 m_stereo_image[8];
const float m_sound_input_gain = 0.05;
const float m_sound_input_gain = 0.05f;
const int m_sound_max_channels = 8;
int16_t m_ulaw_lookup[256];
void refresh_sound_frequency();

View File

@ -1,12 +1,13 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
#include "emu.h"
#define REALLY_SIMPLE 0
/* Non-Flipped, Non-Tinted, Transparent */
#define FLIPX 0
#define TINT 0
#define TRANSPARENT 1
#include "emu.h"
#include "epic12.h"
/* Special Case */

View File

@ -1,12 +1,13 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
#include "emu.h"
#define REALLY_SIMPLE 0
/* Non-Flipped, Non-Tinted, Non-Transparent */
#define FLIPX 0
#define TINT 0
#define TRANSPARENT 0
#include "emu.h"
#include "epic12.h"
/* Special Case */

View File

@ -1,12 +1,13 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
#include "emu.h"
#define REALLY_SIMPLE 0
/* X-Flipped, Non-Tinted, Transparent */
#define FLIPX 1
#define TINT 0
#define TRANSPARENT 1
#include "emu.h"
#include "epic12.h"
/* Special Case */

View File

@ -1,12 +1,13 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
#include "emu.h"
#define REALLY_SIMPLE 0
/* X-Flipped, Non-Tinted, Non-Transparent */
#define FLIPX 1
#define TINT 0
#define TRANSPARENT 0
#include "emu.h"
#include "epic12.h"
/* Special Case */

View File

@ -1,12 +1,13 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
#include "emu.h"
#define REALLY_SIMPLE 0
/* Non-Flipped, Tinted, Transparent */
#define FLIPX 0
#define TINT 1
#define TRANSPARENT 1
#include "emu.h"
#include "epic12.h"
/* Special Case */

View File

@ -1,12 +1,13 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
#include "emu.h"
#define REALLY_SIMPLE 0
/* Non-Flipped, Tinted, Non-Transparent */
#define FLIPX 0
#define TINT 1
#define TRANSPARENT 0
#include "emu.h"
#include "epic12.h"
/* Special Case */

View File

@ -1,12 +1,13 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
#include "emu.h"
#define REALLY_SIMPLE 0
/* X-Flipped, Tinted, Transparent */
#define FLIPX 1
#define TINT 1
#define TRANSPARENT 1
#include "emu.h"
#include "epic12.h"
/* Special Case */

View File

@ -1,12 +1,13 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
#include "emu.h"
#define REALLY_SIMPLE 0
/* X-Flipped, Tinted, Non-Transparent */
#define FLIPX 1
#define TINT 1
#define TRANSPARENT 0
#include "emu.h"
#include "epic12.h"
/* Special Case */

View File

@ -567,7 +567,9 @@ void sr_state::cpu_wd_w(u8 data)
{
// U22 (74LS161) parallel load zero
if ((data & 0x3e) == 0x14)
/* TODO: watchdog reset */;
{
/* TODO: watchdog reset */
}
}
u8 sr_state::cpu_nvram_r(address_space &space, offs_t offset)