Changeset 3541 for neercs/trunk/src
- Timestamp:
- Jun 9, 2009, 2:03:47 PM (12 years ago)
- Location:
- neercs/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/main.c
r3500 r3541 204 204 { 205 205 l2 += lb; 206 #if defined HAVE_CACA_DIRTY_RECTANGLES 206 207 l = caca_import_area_from_memory(screen_list->cv, x, y, buf, l2, "caca"); 208 #else 209 l = caca_import_memory(screen_list->cv, buf, l2, "caca"); 210 #endif 207 211 } 208 212 } -
neercs/trunk/src/server.c
r3508 r3541 112 112 void *buf; 113 113 char buf2[32]; 114 int x, y, w, h,i;114 int x, y, i; 115 115 116 116 getsockopt(screen_list->socket[SOCK_CLIENT], SOL_SOCKET, SO_SNDBUF, … … 122 122 for (i=0; i<ndirty; i++) 123 123 { 124 int w, h; 124 125 caca_get_dirty_rect(screen_list->cv, i, &x, &y, &w, &h); 125 126 debug("dirty @%d,%d %dx%d [%dx%d]", x, y, w, h, caca_get_canvas_width(screen_list->cv), caca_get_canvas_height(screen_list->cv)); 126 #else127 {128 i = 0;129 x = 0;130 y = 0;131 w = caca_get_canvas_width(screen_list->cv);132 h = caca_get_canvas_height(screen_list->cv);133 #endif134 127 buf = caca_export_area_to_memory (screen_list->cv, 135 128 x, y, w, h, 136 129 "caca", 137 130 &bytes); 131 #else 132 { 133 i = 0; 134 x = 0; 135 y = 0; 136 buf = caca_export_memory (screen_list->cv, 137 "caca", 138 &bytes); 139 #endif 138 140 debug("Requesting refresh for %d", bytes); 139 141 towrite = bytes;
Note: See TracChangeset
for help on using the changeset viewer.