Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Commit 6d07784

Browse files
committed
fix linux
1 parent bd18957 commit 6d07784

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

pebble/hw/display/pebble_display.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@ static void pbl_display_register_types(void)
467467

468468
type_init(pbl_display_register_types)
469469

470+
/* Called from pebble_control.c when the vibe motor is toggled. */
471+
void pbl_display_set_vibrating(bool on);
472+
470473
void pbl_display_set_vibrating(bool on)
471474
{
472475
PblDisplay *s = s_display_instance;

pebble/hw/display/pebble_snowy_display.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ static void ps_display_cmd_set_2_unscramble_column(PSDisplayGlobals *s, uint32_t
526526
{
527527
int row_idx;
528528
const int line_bytes = s->num_rows - 2 * s->num_border_rows;
529-
uint8_t col_buffer[line_bytes];
529+
g_autofree uint8_t *col_buffer = g_malloc(line_bytes);
530530

531531
// Copy the column into temp buffer first, without border pixels
532532
for (row_idx = 0; row_idx < line_bytes; row_idx++) {
@@ -580,7 +580,7 @@ static void ps_display_cmd_set_2_unscramble_column(PSDisplayGlobals *s, uint32_t
580580
static void ps_display_cmd_set_2_unscramble_row(PSDisplayGlobals *s, uint32_t row_index)
581581
{
582582
const int line_bytes = s->num_cols - 2 * s->num_border_cols;
583-
uint8_t row_buffer[line_bytes];
583+
g_autofree uint8_t *row_buffer = g_malloc(line_bytes);
584584
uint8_t *fb = &s->framebuffer[row_index * s->bytes_per_row + s->num_border_cols];
585585

586586
// Copy the row into temp buffer first, without border pixels

0 commit comments

Comments
 (0)