| 330 | } |
| 331 | |
| 332 | void grViewport::lock_clear(ddgr_color col) { |
| 333 | int l = CLIP_LEFT, t = CLIP_TOP, r = CLIP_RIGHT, b = CLIP_BOTTOM; |
| 334 | ddgr_surface *memsurf = sf_Parent->scratch_mem_surf; |
| 335 | |
| 336 | ASSERT(vp_Locked); |
| 337 | |
| 338 | if (sf_Parent->ddsfObj.flags & SURFFLAG_RENDERER) { |
| 339 | rend_FillRect(col, l, t, r, b); |
| 340 | } else { |
| 341 | memsurf->bpp = pen_Obj.sf->bpp; |
| 342 | |
| 343 | gr_mem_surf_Init(memsurf, pen_Obj.data, pen_Obj.rowsize); |
| 344 | gr_mem_surf_Clear(memsurf, col, l, t, r - l + 1, b - t + 1); |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | void grViewport::lock_clear(ddgr_color col, int l, int t, int r, int b) { |
| 349 | ddgr_surface *memsurf = sf_Parent->scratch_mem_surf; |
nothing calls this directly
no test coverage detected