Changeset 353
- Timestamp:
- Jan 18, 2004, 5:01:32 AM (18 years ago)
- Location:
- libcaca/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/caca_internals.h
r349 r353 86 86 extern Display *x11_dpy; 87 87 extern Window x11_window; 88 extern Pixmap x11_pixmap; 89 extern GC x11_gc; 88 90 extern long int x11_event_mask; 89 91 extern int x11_font_width, x11_font_height; -
libcaca/trunk/src/event.c
r351 r353 260 260 KeySym keysym; 261 261 262 /* Expose event */ 263 if(xevent.type == Expose) 264 { 265 XCopyArea(x11_dpy, x11_pixmap, x11_window, x11_gc, 0, 0, 266 _caca_width * x11_font_width, 267 _caca_height * x11_font_height, 0, 0); 268 continue; 269 } 270 262 271 /* Resize event */ 263 272 if(xevent.type == ConfigureNotify) 264 273 { 265 unsigned int w = xevent.xconfigure.width / x11_font_width; 266 unsigned int h = xevent.xconfigure.height / x11_font_height; 274 unsigned int w, h; 275 276 h = (xevent.xconfigure.height + x11_font_height / 3) 277 / x11_font_height; 278 w = (xevent.xconfigure.width + x11_font_width / 3) 279 / x11_font_width; 267 280 268 281 if(w == _caca_width && h == _caca_height) -
libcaca/trunk/src/graphics.c
r352 r353 164 164 Display *x11_dpy; 165 165 Window x11_window; 166 Pixmap x11_pixmap; 167 GC x11_gc; 166 168 long int x11_event_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask 167 | ButtonReleaseMask | PointerMotionMask | StructureNotifyMask; 169 | ButtonReleaseMask | PointerMotionMask | StructureNotifyMask 170 | ExposureMask; 168 171 int x11_font_width, x11_font_height; 169 172 unsigned int x11_new_width, x11_new_height; 170 static GC x11_gc;171 static Pixmap x11_pixmap;172 173 static uint8_t *x11_char, *x11_attr; 173 174 static int x11_colors[16];
Note: See TracChangeset
for help on using the changeset viewer.