| 370 | } |
| 371 | |
| 372 | void X8DrawingContext::Clear(RenderTarget& rt, PaletteIndex paletteIndex) |
| 373 | { |
| 374 | Guard::Assert(_isDrawing == true); |
| 375 | |
| 376 | int32_t w = rt.width; |
| 377 | int32_t h = rt.height; |
| 378 | PaletteIndex* ptr = rt.bits; |
| 379 | |
| 380 | for (int32_t y = 0; y < h; y++) |
| 381 | { |
| 382 | std::fill_n(ptr, w, paletteIndex); |
| 383 | ptr += w + rt.pitch; |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | void X8DrawingContext::FillRect( |
| 388 | RenderTarget& rt, PaletteIndex paletteIndex, int32_t left, int32_t top, int32_t right, int32_t bottom, bool crossHatch) |