mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
not worth mention: added very small workaround which fixes mingw32 crash on my eeepc.
I guess it could be related to some problem in my system (ASUS EeePC, Intel Atom CPU Z520 @ 1.33GHz 0,99GB RAM), but I don't get why non-symbols compile is crashing at this file while symbols build always compiles fine. Any suggestion is welcome, but I hope nobody has any objection against this change. FWIW, I came to this "fix" after noticing that the removal of one of the for loops (any of the 3) was fixing the issue...
This commit is contained in:
parent
a88ab87089
commit
c1fd5b50bf
@ -153,32 +153,32 @@ void gfx_init(running_machine *machine)
|
|||||||
/* loop over all the planes, converting fractions */
|
/* loop over all the planes, converting fractions */
|
||||||
for (j = 0; j < planes; j++)
|
for (j = 0; j < planes; j++)
|
||||||
{
|
{
|
||||||
UINT32 value = extpoffs[j];
|
UINT32 value1 = extpoffs[j];
|
||||||
if (IS_FRAC(value))
|
if (IS_FRAC(value1))
|
||||||
{
|
{
|
||||||
assert(region_length != 0);
|
assert(region_length != 0);
|
||||||
extpoffs[j] = FRAC_OFFSET(value) + region_length * FRAC_NUM(value) / FRAC_DEN(value);
|
extpoffs[j] = FRAC_OFFSET(value1) + region_length * FRAC_NUM(value1) / FRAC_DEN(value1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* loop over all the X/Y offsets, converting fractions */
|
/* loop over all the X/Y offsets, converting fractions */
|
||||||
for (j = 0; j < width; j++)
|
for (j = 0; j < width; j++)
|
||||||
{
|
{
|
||||||
UINT32 value = extxoffs[j];
|
UINT32 value2 = extxoffs[j];
|
||||||
if (IS_FRAC(value))
|
if (IS_FRAC(value2))
|
||||||
{
|
{
|
||||||
assert(region_length != 0);
|
assert(region_length != 0);
|
||||||
extxoffs[j] = FRAC_OFFSET(value) + region_length * FRAC_NUM(value) / FRAC_DEN(value);
|
extxoffs[j] = FRAC_OFFSET(value2) + region_length * FRAC_NUM(value2) / FRAC_DEN(value2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (j = 0; j < height; j++)
|
for (j = 0; j < height; j++)
|
||||||
{
|
{
|
||||||
UINT32 value = extyoffs[j];
|
UINT32 value3 = extyoffs[j];
|
||||||
if (IS_FRAC(value))
|
if (IS_FRAC(value3))
|
||||||
{
|
{
|
||||||
assert(region_length != 0);
|
assert(region_length != 0);
|
||||||
extyoffs[j] = FRAC_OFFSET(value) + region_length * FRAC_NUM(value) / FRAC_DEN(value);
|
extyoffs[j] = FRAC_OFFSET(value3) + region_length * FRAC_NUM(value3) / FRAC_DEN(value3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user