Merge pull request #1133 from davidgyu/hud_logo_update

Thanks, David -- that turned out to be more involved than expected!
This commit is contained in:
Barry Fowler 2019-06-20 14:23:57 -07:00 committed by GitHub
commit 8270c77959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 934 additions and 930 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

File diff suppressed because it is too large Load Diff

View File

@ -31,16 +31,16 @@
#define FONT_TEXTURE_ROWS 8
#define FONT_CHAR_WIDTH (FONT_TEXTURE_WIDTH/FONT_TEXTURE_COLUMNS)
#define FONT_CHAR_HEIGHT (FONT_TEXTURE_HEIGHT/FONT_TEXTURE_ROWS)
#define FONT_CHECK_BOX_OFF 0x3
#define FONT_CHECK_BOX_ON 0x4
#define FONT_RADIO_BUTTON_OFF 0x6
#define FONT_RADIO_BUTTON_ON 0x7
#define FONT_CHECK_BOX_OFF 0x2
#define FONT_CHECK_BOX_ON 0x3
#define FONT_RADIO_BUTTON_OFF 0x4
#define FONT_RADIO_BUTTON_ON 0x5
#define FONT_SLIDER_LEFT 0x10
#define FONT_SLIDER_MIDDLE 0x11
#define FONT_SLIDER_RIGHT 0x12
#define FONT_SLIDER_CURSOR 0x7c
#define FONT_ARROW_RIGHT 0x15
#define FONT_ARROW_DOWN 0x17
#define FONT_SLIDER_CURSOR 0x13
#define FONT_ARROW_RIGHT 0x14
#define FONT_ARROW_DOWN 0x15
extern unsigned char font_image[];

View File

@ -556,10 +556,15 @@ Hud::Rebuild(int width, int height, int framebufferWidth, int framebufferHeight)
}
}
drawString(_staticVboSource, _windowWidth-80, _windowHeight-48, .5, .5, .5,
"\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f");
drawString(_staticVboSource, _windowWidth-80, _windowHeight-32, .5, .5, .5,
"\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f");
// draw the character cells corresponding to the logo
drawString(_staticVboSource, _windowWidth-128, _windowHeight-44, .5, .5, .5,
"\x06\x07\x08\x09");
drawString(_staticVboSource, _windowWidth-128, _windowHeight-28, .5, .5, .5,
"\x16\x17\x18\x19");
drawString(_staticVboSource, _windowWidth-92, _windowHeight-36, .5, .5, .5,
"\x0a\x0b\x0c\x0d");
drawString(_staticVboSource, _windowWidth-58, _windowHeight-36, .5, .5, .5,
"\x1a\x1b\x1c\x1d\x1e\x1f");
}
bool