framebuffer_ng: fix gradient blit

fixes https://github.com/neutrino-mp/neutrino-mp/issues/2,
thanks satbaby
This commit is contained in:
Stefan Seyfried
2017-02-01 21:48:05 +01:00
parent 48ff7b36a2
commit e44146bf73

View File

@@ -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 *bp = boxBuf;
fb_pixel_t *gra = gradientData->gradientBuf; fb_pixel_t *gra = gradientData->gradientBuf;
gradientData->boxBuf = boxBuf; gradientData->boxBuf = boxBuf;
gradientData->x = x;
gradientData->dx = dx;
if (gradientData->direction == gradientVertical) { if (gradientData->direction == gradientVertical) {
// vertical // vertical