From e44146bf731dfb5933943f14459a3cfb754ad1d4 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 1 Feb 2017 21:48:05 +0100 Subject: [PATCH] framebuffer_ng: fix gradient blit fixes https://github.com/neutrino-mp/neutrino-mp/issues/2, thanks satbaby --- src/driver/framebuffer_ng.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/driver/framebuffer_ng.cpp b/src/driver/framebuffer_ng.cpp index 283f6066c..5bd27337f 100644 --- a/src/driver/framebuffer_ng.cpp +++ b/src/driver/framebuffer_ng.cpp @@ -589,6 +589,8 @@ fb_pixel_t* CFrameBuffer::paintBoxRel(const int x, const int y, const int dx, co fb_pixel_t *bp = boxBuf; fb_pixel_t *gra = gradientData->gradientBuf; gradientData->boxBuf = boxBuf; + gradientData->x = x; + gradientData->dx = dx; if (gradientData->direction == gradientVertical) { // vertical