Previous 15994 Revisions Next

r9081 Thursday 9th September, 2010 at 17:27:44 UTC by Angelo Salese
[SUPER A'CAN] Reimplemented mosaic [David Haywood]
[src/mess/drivers]supracan.c

src/mess/drivers/supracan.c
r9080r9081
849849                  if (scrollx&0x8000) scrollx-= 0x10000;
850850                  if (scrolly&0x8000) scrolly-= 0x10000;
851851               
852                    int mosaic_count = (state->tilemap_flags[layer] & 0x001c) >> 2;
853                   int mosaic_mask = 0xffffffff << mosaic_count;
854               
852855                  int y,x;
853856                  // yes, it will draw a single line if you specify a cliprect as such (partial updates...)
854857                 
r9080r9081
857860                     // these will have to change to ADDR32 etc. once alpha blending is supported
858861                     UINT16* screen = BITMAP_ADDR16(bitmap, y, 0);
859862                     
860                     int realy = y+scrolly;
863                     int actualy = y&mosaic_mask;
864                     
865                     int realy = actualy+scrolly;
861866                                         
862867                     if (!wrap)
863868                        if (scrolly+y < 0 || scrolly+y > ((ysize*8)-1))
r9080r9081
868873                     
869874                     for (x=cliprect->min_x;x<=cliprect->max_x;x++)
870875                     {
871                        int realx = x+scrollx;
876                        int actualx = x & mosaic_mask;
877                        int realx = actualx+scrollx;
872878                       
873879                        if (!wrap)
874880                           if (scrollx+x < 0 || scrollx+x > ((xsize*8)-1))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team