diff --git a/src/driver/framebuffer.cpp b/src/driver/framebuffer.cpp index 3de58bb4d..9bf75ae85 100644 --- a/src/driver/framebuffer.cpp +++ b/src/driver/framebuffer.cpp @@ -750,12 +750,13 @@ void CFrameBuffer::paintBoxRel(const int x, const int y, const int dx, const int } ioctl(fd, FBIO_FILL_RECT, &fillrect); + return; + } +#endif + while (line < dy) { + paintHLineRelInternal(x, dx, y+line, col); + line++; } - } -#else - while (line < dy) { - paintHLineRelInternal(x+ofl, dx-ofl-ofr, y+line col); - line++; } #ifdef USE_NEVIS_GXA @@ -764,7 +765,6 @@ void CFrameBuffer::paintBoxRel(const int x, const int y, const int dx, const int */ add_gxa_sync_marker(); #endif -#endif } void CFrameBuffer::paintVLineRelInternal(int x, int y, int dy, const fb_pixel_t col)