From 2665cdbe07ef6859a66eb1a707a4a2f6d20e0fe7 Mon Sep 17 00:00:00 2001 From: angelosa Date: Fri, 3 Nov 2017 23:08:52 +0100 Subject: flower.cpp: fixed zoom points for 32x32 sprites [Angelo Salese] --- src/mame/drivers/flower.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mame/drivers/flower.cpp b/src/mame/drivers/flower.cpp index bdbef8d2246..aaf1f19b65b 100644 --- a/src/mame/drivers/flower.cpp +++ b/src/mame/drivers/flower.cpp @@ -8,8 +8,6 @@ original "wiped off due of not anymore licenseable" driver by insideoutboy. TODO: - - offset sprite shrinking (ship going inside/outside the base, 2nd boss - zoom points); - priority might be wrong in some places (title screen stars around the galaxy, planet ship 3rd boss, 2nd boss); - sound chips (similar to Namco custom chips?) @@ -245,6 +243,8 @@ void flower_state::draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect) uint8_t fx = spr_ptr[i+1] & 0x40; uint8_t ysize = ((spr_ptr[i+3] & 0x80) >> 7) + 1; uint8_t xsize = ((spr_ptr[i+3] & 0x08) >> 3) + 1; + uint8_t ydiv = ysize == 2 ? 1 : 2; + uint8_t xdiv = xsize == 2 ? 1 : 2; uint32_t yshrink_zoom = ((spr_ptr[i+3] & 0x70) >> 4) + 1; uint32_t xshrink_zoom = ((spr_ptr[i+3] & 0x07) >> 0) + 1; yshrink_zoom <<= 13; @@ -267,13 +267,13 @@ void flower_state::draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect) for(int yi=0;yi