fix c example

This commit is contained in:
Vinzenz Schroeter 2024-05-14 21:41:59 +02:00
parent 9b618d931a
commit 5803b71f3a

View file

@ -8,7 +8,7 @@ int main(void) {
sp2_PixelGrid *pixels = sp2_pixel_grid_new(sp2_PIXEL_WIDTH, sp2_PIXEL_HEIGHT); sp2_PixelGrid *pixels = sp2_pixel_grid_new(sp2_PIXEL_WIDTH, sp2_PIXEL_HEIGHT);
sp2_pixel_grid_fill(pixels, true); sp2_pixel_grid_fill(pixels, true);
command = sp2_command_bitmap_linear_win(0, 0, pixels); sp2_Command *command = sp2_command_bitmap_linear_win(0, 0, pixels);
if (command == NULL) if (command == NULL)
return 4; return 4;
if (!sp2_connection_send(connection, command)) if (!sp2_connection_send(connection, command))