add ValueGrid::wrap and CharGrid::wrap_str, more examples
add examples
This commit is contained in:
		
							parent
							
								
									2a6005fff9
								
							
						
					
					
						commit
						04cda144ed
					
				
					 6 changed files with 160 additions and 26 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue