Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix displaying of 0x7f char #31

Merged
merged 3 commits into from
Mar 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VDR Plugin 'osdteletext' Revision History
-----------------------------------------
2022-03-28:
- [pbiering] fix missing implementation of graphics char 0x7f (filled rectangle)
- [pbiering] implement 'Paused' toggle

2022-03-27:
Expand Down
5 changes: 4 additions & 1 deletion displaybase.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,10 @@ void cDisplay::DrawChar(int x, int y, cTeletextChar c) {
if (charset == CHARSET_GRAPHICS_G1 || charset == CHARSET_GRAPHICS_G1_SEP) {
isGraphicsChar = true;
} else {
isGraphicsChar = false;
if (c.GetChar() == 0x7f) // filled rectangle
isGraphicsChar = true;
else
isGraphicsChar = false;
switch(fontType) {
case 0:
font = TXTFont;
Expand Down
2 changes: 1 addition & 1 deletion osdteletext.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ using namespace std;

#define NUMELEMENTS(x) (sizeof(x) / sizeof(x[0]))

static const char *VERSION = "1.1.0.dev.5";
static const char *VERSION = "1.1.0.dev.6";
static const char *DESCRIPTION = trNOOP("Displays teletext on the OSD");
static const char *MAINMENUENTRY = trNOOP("Teletext");

Expand Down
2 changes: 1 addition & 1 deletion txtfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -6902,7 +6902,7 @@ unsigned int* GetFontChar(cTeletextChar c, unsigned int *buffer) {
}

unsigned int GetVTXChar(cTeletextChar c) {
// convert character for character/charset to utf8
// convert character for character/charset to utf8
int convertedChar = 0;
enumCharsets font = c.GetCharset();
int chr = c.GetChar();
Expand Down