We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6960914 commit 9abc8c4Copy full SHA for 9abc8c4
src/gfx/drawable.cpp
@@ -487,7 +487,7 @@ bool Drawable::blit(
487
488
if (x == 0 && y == 0 && surface->getWidth() == getWidth() && surface->getHeight() == getHeight())
489
{
490
- memcpy(getDrawingBuffer(), surface->getDrawingBuffer(), getWidth() * getHeight() * 4);
+ memcpy(getDrawingBuffer(), surface->getDrawingBuffer(), (size_t)getWidth() * (size_t)getHeight() * 4l);
491
return true;
492
}
493
0 commit comments