Previous 15994 Revisions Next

r5023 Monday 15th June, 2009 at 08:55:19 UTC by Robbbert
[COLECO] Fixed crash on soft reset. Please revert if it causes problems.
[src/emu/video]tms9928a.c

src/emu/video/tms9928a.c
r5022r5023
670670    int p,x,y,size,i,j,large,yy,xx,limit[192],
671671        illegalsprite,illegalspriteline;
672672    UINT16 line,line2;
673    const pen_t *pens;
674673
675    pens = screen->machine->pens;
676674    attributeptr = tms.vMem + tms.spriteattribute;
677675    size = (tms.Regs[1] & 2) ? 16 : 8;
678676    large = (int)(tms.Regs[1] & 1);
r5022r5023
728726                            {
729727                                tms.dBackMem[yy*256+xx] |= 0x02;
730728                                if (bitmap)
731                                    *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx) = pens[c];
729                                    *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx) = c;
732730                            }
733731                        }
734732                    }
r5022r5023
767765                                    {
768766                                        tms.dBackMem[yy*256+xx] |= 0x02;
769767                                        if (bitmap)
770                                            *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx) = pens[c];
768                                            *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx) = c;
771769                                    }
772770                                }
773771                                if (((xx+1) >=0) && ((xx+1) < 256)) {
r5022r5023
780778                                    {
781779                                        tms.dBackMem[yy*256+xx+1] |= 0x02;
782780                                        if (bitmap)
783                                            *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx+1) = pens[c];
781                                            *BITMAP_ADDR16(bitmap, TOP_BORDER+yy, LEFT_BORDER+xx+1) = c;
784782                                    }
785783                                }
786784                            }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team