mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Some minor code cleanups
This commit is contained in:
parent
8ce0247091
commit
5105187701
@ -1026,6 +1026,7 @@ Drazen Dupor <drazen.dupor@dupor.com>
|
|||||||
|
|
||||||
Prakash K. Cheemplavam <PrakashKC@gmx.de>
|
Prakash K. Cheemplavam <PrakashKC@gmx.de>
|
||||||
for fixing some issues with gcc 3.4
|
for fixing some issues with gcc 3.4
|
||||||
|
for some minor code cleanups
|
||||||
|
|
||||||
Miko Wohlgemuth <weak@chello.at>
|
Miko Wohlgemuth <weak@chello.at>
|
||||||
for reporting a problem with the OSD alignment in the SPU decoder
|
for reporting a problem with the OSD alignment in the SPU decoder
|
||||||
|
1
HISTORY
1
HISTORY
@ -3056,3 +3056,4 @@ Video Disk Recorder Revision History
|
|||||||
to clear the transfer buffer to avoid overflows (thanks to Reinhard Nissl).
|
to clear the transfer buffer to avoid overflows (thanks to Reinhard Nissl).
|
||||||
- Updated Romanian language texts and the iso8859-2 fonts (thanks to Lucian Muresan).
|
- Updated Romanian language texts and the iso8859-2 fonts (thanks to Lucian Muresan).
|
||||||
- Now actually using the iso8859-15 fonts (thanks to Lucian Muresan).
|
- Now actually using the iso8859-15 fonts (thanks to Lucian Muresan).
|
||||||
|
- Some minor code cleanups (thanks to Prakash K. Cheemplavam).
|
||||||
|
@ -179,7 +179,7 @@ SuckGlyphsFromServer(Display * dpy, Font font)
|
|||||||
charHeight = charinfo->ascent + charinfo->descent;
|
charHeight = charinfo->ascent + charinfo->descent;
|
||||||
spanLength = (charWidth + 7) / 8;
|
spanLength = (charWidth + 7) / 8;
|
||||||
}
|
}
|
||||||
bitmapData = calloc(height * spanLength, sizeof(char));
|
bitmapData = (unsigned char *)calloc(height * spanLength, sizeof(char));
|
||||||
if (!bitmapData)
|
if (!bitmapData)
|
||||||
goto FreeFontAndReturn;
|
goto FreeFontAndReturn;
|
||||||
DEBUG_GLYPH4("index %d, glyph %d (%d by %d)\n",
|
DEBUG_GLYPH4("index %d, glyph %d (%d by %d)\n",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* the Free Software Foundation; either version 2 of the License, or *
|
* the Free Software Foundation; either version 2 of the License, or *
|
||||||
* (at your option) any later version. *
|
* (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* $Id: util.h 1.4 2004/10/16 09:59:48 kls Exp $
|
* $Id: util.h 1.5 2004/10/23 14:22:40 kls Exp $
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ namespace DVBTime {
|
|||||||
time_t getTime(unsigned char date_hi, unsigned char date_lo, unsigned char timehr, unsigned char timemi, unsigned char timese);
|
time_t getTime(unsigned char date_hi, unsigned char date_lo, unsigned char timehr, unsigned char timemi, unsigned char timese);
|
||||||
time_t getDuration(unsigned char timehr, unsigned char timemi, unsigned char timese);
|
time_t getDuration(unsigned char timehr, unsigned char timemi, unsigned char timese);
|
||||||
inline unsigned char bcdToDec(unsigned char b) { return ((b >> 4) & 0x0F) * 10 + (b & 0x0F); }
|
inline unsigned char bcdToDec(unsigned char b) { return ((b >> 4) & 0x0F) * 10 + (b & 0x0F); }
|
||||||
};
|
}
|
||||||
|
|
||||||
//taken and adapted from libdtv, (c) Rolf Hakenes
|
//taken and adapted from libdtv, (c) Rolf Hakenes
|
||||||
class CRC32 {
|
class CRC32 {
|
||||||
|
Loading…
Reference in New Issue
Block a user