From c1fd5b50bf63c00d4e60b40fa18149733873f076 Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Sun, 28 Feb 2010 14:26:29 +0000 Subject: [PATCH] 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... --- src/emu/drawgfx.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/emu/drawgfx.c b/src/emu/drawgfx.c index 08909290778..50ab3455ccb 100644 --- a/src/emu/drawgfx.c +++ b/src/emu/drawgfx.c @@ -153,32 +153,32 @@ void gfx_init(running_machine *machine) /* loop over all the planes, converting fractions */ for (j = 0; j < planes; j++) { - UINT32 value = extpoffs[j]; - if (IS_FRAC(value)) + UINT32 value1 = extpoffs[j]; + if (IS_FRAC(value1)) { 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 */ for (j = 0; j < width; j++) { - UINT32 value = extxoffs[j]; - if (IS_FRAC(value)) + UINT32 value2 = extxoffs[j]; + if (IS_FRAC(value2)) { 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++) { - UINT32 value = extyoffs[j]; - if (IS_FRAC(value)) + UINT32 value3 = extyoffs[j]; + if (IS_FRAC(value3)) { 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); } } }