1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

Use FT_ULong instead of uint

This commit is contained in:
jojo61 2020-02-26 16:52:48 +01:00
parent a5b81f8de1
commit 03e69b5e26
3 changed files with 14 additions and 6 deletions

View File

@ -270,7 +270,7 @@ bool cShader::CheckCompileErrors(GLuint object, bool program) {
/****************************************************************************************
* cOglGlyph
****************************************************************************************/
cOglGlyph::cOglGlyph(uint charCode, FT_BitmapGlyph ftGlyph) {
cOglGlyph::cOglGlyph(FT_ULong charCode, FT_BitmapGlyph ftGlyph) {
this->charCode = charCode;
bearingLeft = ftGlyph->left;
bearingTop = ftGlyph->top;
@ -389,7 +389,7 @@ void cOglFont::Cleanup(void) {
esyslog("failed to deinitialize FreeType library!");
}
cOglGlyph* cOglFont::Glyph(uint charCode) const {
cOglGlyph* cOglFont::Glyph(FT_ULong charCode) const {
// Non-breaking space:
if (charCode == 0xA0)
charCode = 0x20;

View File

@ -110,7 +110,7 @@ class cOglGlyph:public cListObject
uint prevSym;
GLfloat kerning;
};
uint charCode;
FT_ULong charCode;
int bearingLeft;
int bearingTop;
int width;
@ -122,9 +122,9 @@ class cOglGlyph:public cListObject
void LoadTexture(FT_BitmapGlyph ftGlyph);
public:
cOglGlyph(uint charCode, FT_BitmapGlyph ftGlyph);
cOglGlyph(FT_ULong charCode, FT_BitmapGlyph ftGlyph);
virtual ~ cOglGlyph();
uint CharCode(void)
FT_ULong CharCode(void)
{
return charCode;
}
@ -190,7 +190,7 @@ class cOglFont:public cListObject
{
return height;
};
cOglGlyph *Glyph(uint charCode) const;
cOglGlyph *Glyph(FT_ULong charCode) const;
int Kerning(cOglGlyph * glyph, uint prevSym) const;
};

View File

@ -248,6 +248,14 @@ extern int VideoRaiseWindow(void);
#ifdef USE_OPENGLOSD
extern void ActivateOsd(GLuint, int, int, int, int);
#endif
#ifdef GAMMA
extern void Init_Gamma();
extern void Exit_Gamma();
extern void Set_Gamma(float, int);
extern void Get_Gamma();
#endif
#if 0
long int gettid()
{