Change icon handling and charmaps:
* The full block icon now has index 0 and the heart has index 7. This makes the full block work if vBar custom chars are loaded (which use index 1-7). * Prevent (hbar, vbar, bignum) modes from overwriting custom chars (except full block). * Prevent the heartbeat from overwriting custom chars in vbar and bignum mode. * Make the driver point to 0x1A and 0x1B characters for right/left arrow characters (those are the codes from HD44780 A02) and make all charmaps pointing to the correct characters. * It is now possible to map the tilde character. * Update other drivers that use hd44780-charmap.h (IOWarrior and ula200). * Replace characters using charmaps on input instead of output! * Remove some unnecessary comments.
This commit is contained in:
@@ -33,10 +33,10 @@
|
||||
#include <usb.h>
|
||||
#include <ftdi.h>
|
||||
|
||||
#include "hd44780-charmap.h"
|
||||
#include "lcd.h"
|
||||
#include "ula200.h"
|
||||
#include "report.h"
|
||||
#include "hd44780-charmap.h"
|
||||
#include "adv_bignum.h"
|
||||
|
||||
|
||||
@@ -880,10 +880,10 @@ ula200_icon(Driver *drvthis, int x, int y, int icon)
|
||||
ula200_chr(drvthis, x, y, 4);
|
||||
break;
|
||||
case ICON_ARROW_LEFT:
|
||||
ula200_chr(drvthis, x, y, 0x7F);
|
||||
ula200_chr(drvthis, x, y, 0x1B);
|
||||
break;
|
||||
case ICON_ARROW_RIGHT:
|
||||
ula200_chr(drvthis, x, y, 0x7E);
|
||||
ula200_chr(drvthis, x, y, 0x1A);
|
||||
break;
|
||||
case ICON_CHECKBOX_OFF:
|
||||
ula200_chr(drvthis, x, y, 5);
|
||||
|
||||
Reference in New Issue
Block a user