trunk/src/emu/video/hd61830.c
| r28772 | r28773 | |
| 379 | 379 | |
| 380 | 380 | for (int x = 0; x < m_hp; x++) |
| 381 | 381 | { |
| 382 | | bitmap.pix16(y, (sx * m_hp) + x) = BIT(data1, x); |
| 383 | | assert(y >= 0 && y < bitmap.height()); |
| 384 | | assert(((sx * m_hp) + x + m_hp) >= 0 && ((sx * m_hp) + x + m_hp) < bitmap.width()); |
| 385 | | bitmap.pix16(y, (sx * m_hp) + x + m_hp) = BIT(data2, x); |
| 382 | if(y >= 0 && y < bitmap.height()) |
| 383 | { |
| 384 | if(((sx * m_hp) + x) >= 0 && ((sx * m_hp) + x) < bitmap.width()) |
| 385 | bitmap.pix16(y, (sx * m_hp) + x) = BIT(data1, x); |
| 386 | if(((sx * m_hp) + x + m_hp) >= 0 && ((sx * m_hp) + x + m_hp) < bitmap.width()) |
| 387 | bitmap.pix16(y, (sx * m_hp) + x + m_hp) = BIT(data2, x); |
| 388 | } |
| 386 | 389 | } |
| 387 | 390 | } |
| 388 | 391 | return ra; |