Skip to content

Commit

Permalink
[Docs] Fix example code in quantum_painter.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBanker12 authored Feb 3, 2025
1 parent fa98117 commit b0601a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/quantum_painter.md
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ static painter_image_handle_t my_image;
void keyboard_post_init_kb(void) {
my_image = qp_load_image_mem(gfx_my_image);
if (my_image != NULL) {
qp_drawimage(display, (239 - my_image->width), (319 - my_image->height), my_image);
qp_drawimage(display, (240 - my_image->width), (320 - my_image->height), my_image);
}
}
```
Expand All @@ -909,7 +909,7 @@ static deferred_token my_anim;
void keyboard_post_init_kb(void) {
my_image = qp_load_image_mem(gfx_my_image);
if (my_image != NULL) {
my_anim = qp_animate(display, (239 - my_image->width), (319 - my_image->height), my_image);
my_anim = qp_animate(display, (240 - my_image->width), (320 - my_image->height), my_image);
}
}
```
Expand Down Expand Up @@ -1001,7 +1001,7 @@ void keyboard_post_init_kb(void) {
if (my_font != NULL) {
static const char *text = "Hello from QMK!";
int16_t width = qp_textwidth(my_font, text);
qp_drawtext(display, (239 - width), (319 - my_font->line_height), my_font, text);
qp_drawtext(display, (240 - width), (320 - my_font->line_height), my_font, text);
}
}
```
Expand Down

0 comments on commit b0601a9

Please sign in to comment.