Fix drawIcon

This commit is contained in:
Michal Moskal 2017-07-11 15:25:14 +02:00
parent a3db891673
commit 8c6b56fc39
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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()