add ValueGrid::wrap and CharGrid::wrap_str, more examples

add examples
This commit is contained in:
Vinzenz Schroeter 2025-01-12 13:50:33 +01:00
parent 2a6005fff9
commit 04cda144ed
6 changed files with 160 additions and 26 deletions

View file

@ -2,7 +2,7 @@
#include "servicepoint.h"
int main(void) {
SPConnection *connection = sp_connection_open("172.23.42.29:2342");
SPConnection *connection = sp_connection_open("localhost:2342");
if (connection == NULL)
return 1;
@ -10,9 +10,8 @@ int main(void) {
sp_bitmap_fill(pixels, true);
SPCommand *command = sp_command_bitmap_linear_win(0, 0, pixels, SP_COMPRESSION_CODE_UNCOMPRESSED);
while (sp_connection_send_command(connection, sp_command_clone(command)));
sp_connection_send_command(connection, command);
sp_command_free(command);
sp_connection_free(connection);
return 0;
}