From cd7dc7a667f6f68f30536c0c580552f052daf6a4 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/e44146bf731dfb5933943f14459a3cfb754ad1d4 Author: Stefan Seyfried Date: 2017-02-01 (Wed, 01 Feb 2017) ------------------ This commit was generated by Migit --- 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