mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Visual Studio compile fix. (nw)
This commit is contained in:
parent
b312f1bb3c
commit
68ebc2b0e5
@ -81,6 +81,7 @@ project "netlist"
|
|||||||
MAME_DIR .. "src/lib/netlist/solver/nld_ms_sor_mat.h",
|
MAME_DIR .. "src/lib/netlist/solver/nld_ms_sor_mat.h",
|
||||||
MAME_DIR .. "src/lib/netlist/solver/nld_ms_gmres.h",
|
MAME_DIR .. "src/lib/netlist/solver/nld_ms_gmres.h",
|
||||||
MAME_DIR .. "src/lib/netlist/solver/mat_cr.h",
|
MAME_DIR .. "src/lib/netlist/solver/mat_cr.h",
|
||||||
|
MAME_DIR .. "src/lib/netlist/solver/nld_ms_sm.h",
|
||||||
MAME_DIR .. "src/lib/netlist/solver/nld_ms_direct_lu.h",
|
MAME_DIR .. "src/lib/netlist/solver/nld_ms_direct_lu.h",
|
||||||
MAME_DIR .. "src/lib/netlist/solver/vector_base.h",
|
MAME_DIR .. "src/lib/netlist/solver/vector_base.h",
|
||||||
MAME_DIR .. "src/lib/netlist/devices/nld_4020.cpp",
|
MAME_DIR .. "src/lib/netlist/devices/nld_4020.cpp",
|
||||||
|
@ -541,9 +541,7 @@ void render_load_jpeg(bitmap_argb32 &bitmap, emu_file &file, const char *dirname
|
|||||||
else
|
else
|
||||||
fname.assign(dirname).append(PATH_SEPARATOR).append(filename);
|
fname.assign(dirname).append(PATH_SEPARATOR).append(filename);
|
||||||
|
|
||||||
osd_file::error filerr = file.open(fname.c_str());
|
if (file.open(fname.c_str()) != osd_file::error::NONE)
|
||||||
|
|
||||||
if (filerr != osd_file::error::NONE)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// define standard JPEG structures
|
// define standard JPEG structures
|
||||||
@ -553,8 +551,8 @@ void render_load_jpeg(bitmap_argb32 &bitmap, emu_file &file, const char *dirname
|
|||||||
jpeg_create_decompress(&cinfo);
|
jpeg_create_decompress(&cinfo);
|
||||||
|
|
||||||
// allocates a buffer for the image
|
// allocates a buffer for the image
|
||||||
UINT64 jpg_size = file.size();
|
UINT32 jpg_size = file.size();
|
||||||
unsigned char *jpg_buffer = global_alloc_array(unsigned char, jpg_size + 100);
|
unsigned char *jpg_buffer = global_alloc_array(unsigned char, jpg_size);
|
||||||
|
|
||||||
// read data from the file and set them in the buffer
|
// read data from the file and set them in the buffer
|
||||||
file.read(jpg_buffer, jpg_size);
|
file.read(jpg_buffer, jpg_size);
|
||||||
@ -587,7 +585,6 @@ void render_load_jpeg(bitmap_argb32 &bitmap, emu_file &file, const char *dirname
|
|||||||
else if (s == 3)
|
else if (s == 3)
|
||||||
for (int i = 0; i < w; ++i)
|
for (int i = 0; i < w; ++i)
|
||||||
bitmap.pix32(j, i) = rgb_t(0xFF, buffer[0][i * s], buffer[0][i * s + 1], buffer[0][i * s + 2]);
|
bitmap.pix32(j, i) = rgb_t(0xFF, buffer[0][i * s], buffer[0][i * s + 1], buffer[0][i * s + 2]);
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
osd_printf_error("Cannot read JPEG data from %s file.\n", fname.c_str());
|
osd_printf_error("Cannot read JPEG data from %s file.\n", fname.c_str());
|
||||||
|
@ -548,7 +548,7 @@ int matrix_solver_sm_t<m_N, _storage_N>::solve_non_dynamic(ATTR_UNUSED const boo
|
|||||||
{
|
{
|
||||||
const auto iN = N();
|
const auto iN = N();
|
||||||
|
|
||||||
if (not incremental)
|
if (!incremental)
|
||||||
{
|
{
|
||||||
for (int row = 0; row < iN; row ++)
|
for (int row = 0; row < iN; row ++)
|
||||||
for (int k = 0; k < iN; k++)
|
for (int k = 0; k < iN; k++)
|
||||||
|
Loading…
Reference in New Issue
Block a user