Fix lower right borders not being filled by engine_rendertarget_fill

This commit is contained in:
Fierelier 2023-08-10 02:07:27 +02:00
parent 2cf2d7441b
commit 1f6789c909

View File

@ -3,6 +3,7 @@ struct ENGINE_TEXTURE * engine_rendertarget_get() {
} }
void engine_rendertarget_fill(int sx,int sy,int ex,int ey) { void engine_rendertarget_fill(int sx,int sy,int ex,int ey) {
ex += 1; ey += 1;
int y = sy; int y = sy;
while (y < ey) { while (y < ey) {
int x = sx; int x = sx;