Fix drawIcon
This commit is contained in:
parent
a3db891673
commit
8c6b56fc39
@ -102,7 +102,7 @@ void blitLineCore(int x, int y, int w, uint8_t *data, Draw mode) {
|
|||||||
int off = OFF(x, y);
|
int off = OFF(x, y);
|
||||||
int off0 = OFF(0, y);
|
int off0 = OFF(0, y);
|
||||||
int off1 = OFF(LCD_WIDTH - 1, y);
|
int off1 = OFF(LCD_WIDTH - 1, y);
|
||||||
int x1 = x + w;
|
int x1 = x + w + shift;
|
||||||
int prev = 0;
|
int prev = 0;
|
||||||
|
|
||||||
while (x < x1 - 8) {
|
while (x < x1 - 8) {
|
||||||
|
@ -4,7 +4,7 @@ screen.drawText(10, 30, "Welcome PXT!", Draw.Double)
|
|||||||
screen.drawRect(40, 40, 20, 10, Draw.Fill)
|
screen.drawRect(40, 40, 20, 10, Draw.Fill)
|
||||||
output.setLights(LightsPattern.Orange)
|
output.setLights(LightsPattern.Orange)
|
||||||
|
|
||||||
screen.drawIcon(100, 50, screen.heart, Draw.Double)
|
screen.drawIcon(100, 50, screen.doubleIcon(screen.heart), Draw.Double|Draw.Transparent)
|
||||||
|
|
||||||
input.buttonEnter.onEvent(ButtonEvent.Click, () => {
|
input.buttonEnter.onEvent(ButtonEvent.Click, () => {
|
||||||
screen.clear()
|
screen.clear()
|
||||||
|
Loading…
Reference in New Issue
Block a user