mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CFbAccelCSHD2: Add scaleFont()function for font upscaling when fullhd is aktiv
This commit is contained in:
@@ -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 blitBox2FB(const fb_pixel_t* boxBuf, uint32_t width, uint32_t height, uint32_t xoff, uint32_t yoff);
|
||||||
void setBlendMode(uint8_t);
|
void setBlendMode(uint8_t);
|
||||||
void setBlendLevel(int);
|
void setBlendLevel(int);
|
||||||
|
int scaleFont(int size);
|
||||||
};
|
};
|
||||||
|
|
||||||
class CFbAccelGLFB
|
class CFbAccelGLFB
|
||||||
|
@@ -264,3 +264,11 @@ void CFbAccelCSHD2::setBlendLevel(int level)
|
|||||||
if (level == 100) // TODO: sucks.
|
if (level == 100) // TODO: sucks.
|
||||||
usleep(20000);
|
usleep(20000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int CFbAccelCSHD2::scaleFont(int size)
|
||||||
|
{
|
||||||
|
if (screeninfo.xres == 1920)
|
||||||
|
size += size/2;
|
||||||
|
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
@@ -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);
|
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 void mark(int x, int y, int dx, int dy);
|
||||||
|
virtual int scaleFont(int size) { return size; };
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user