CFbAccelCSHD2: Add scaleFont()function for font upscaling when fullhd is aktiv

This commit is contained in:
M. Liebmann
2017-02-13 12:49:30 +01:00
parent 33125aed06
commit 88c834221b
3 changed files with 10 additions and 0 deletions

View File

@@ -127,6 +127,7 @@ class CFbAccelCSHD2
void blitBox2FB(const fb_pixel_t* boxBuf, uint32_t width, uint32_t height, uint32_t xoff, uint32_t yoff);
void setBlendMode(uint8_t);
void setBlendLevel(int);
int scaleFont(int size);
};
class CFbAccelGLFB

View File

@@ -264,3 +264,11 @@ void CFbAccelCSHD2::setBlendLevel(int level)
if (level == 100) // TODO: sucks.
usleep(20000);
}
int CFbAccelCSHD2::scaleFont(int size)
{
if (screeninfo.xres == 1920)
size += size/2;
return size;
}

View File

@@ -270,6 +270,7 @@ class CFrameBuffer : public sigc::trackable
void blitBox2FB(const fb_pixel_t* boxBuf, uint32_t width, uint32_t height, uint32_t xoff, uint32_t yoff);
virtual void mark(int x, int y, int dx, int dy);
virtual int scaleFont(int size) { return size; };
enum
{