framebuffer: fix unscaled paintings; this fixes our starbar

Origin commit data
------------------
Commit: f6f1a71b39
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-28 (Tue, 28 Mar 2017)

Origin message was:
------------------
- framebuffer: fix unscaled paintings; this fixes our starbar
This commit is contained in:
vanhofen
2017-03-28 12:36:26 +02:00
parent 3b59835dce
commit d98f9e816c
3 changed files with 14 additions and 5 deletions

View File

@@ -1673,14 +1673,11 @@ void CFrameBuffer::blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint32
xc = (width > xRes) ? xRes : width;
yc = (height > yRes) ? yRes : height;
//FIXME
#if 0
//NI
if(unscaled_w != 0 && (int)unscaled_w < xc)
if (unscaled_w != 0 && (int)unscaled_w < xc)
xc = unscaled_w;
if(unscaled_h != 0 && (int)unscaled_h < yc)
if (unscaled_h != 0 && (int)unscaled_h < yc)
yc = unscaled_h;
#endif
fb_pixel_t* data = (fb_pixel_t *) fbbuff;