mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-01 07:46:11 +00:00
GRAPHICS: Skip empty rects in VectorRendererSpec::drawSquareAlg.
This commit is contained in:
parent
5f61de0e68
commit
df65bad9d2
@ -1244,6 +1244,11 @@ drawBevelTabAlg(int x, int y, int w, int h, int bevel, PixelType top_color, Pixe
|
||||
template<typename PixelType>
|
||||
void VectorRendererSpec<PixelType>::
|
||||
drawSquareAlg(int x, int y, int w, int h, PixelType color, VectorRenderer::FillMode fill_m) {
|
||||
// Do not draw anything for empty rects.
|
||||
if (w <= 0 || h <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
PixelType *ptr = (PixelType *)_activeSurface->getBasePtr(x, y);
|
||||
int pitch = _activeSurface->pitch / _activeSurface->format.bytesPerPixel;
|
||||
int max_h = h;
|
||||
|
Loading…
x
Reference in New Issue
Block a user