Changeset 354 for libcaca/trunk/src
- Timestamp:
- Jan 18, 2004, 5:17:35 AM (19 years ago)
- Location:
- libcaca/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/event.c
r353 r354 274 274 unsigned int w, h; 275 275 276 w = (xevent.xconfigure.width + x11_font_width / 3) 277 / x11_font_width; 276 278 h = (xevent.xconfigure.height + x11_font_height / 3) 277 279 / x11_font_height; 278 w = (xevent.xconfigure.width + x11_font_width / 3)279 / x11_font_width;280 280 281 281 if(w == _caca_width && h == _caca_height) -
libcaca/trunk/src/graphics.c
r353 r354 1321 1321 if(_caca_driver == CACA_DRIVER_X11) 1322 1322 { 1323 Pixmap new_pixmap; 1324 1323 1325 _caca_width = x11_new_width; 1324 1326 _caca_height = x11_new_height; 1325 1327 1326 XFreePixmap(x11_dpy, x11_pixmap);1327 1328 free(x11_char); 1328 1329 free(x11_attr); 1329 1330 1330 x11_pixmap = XCreatePixmap(x11_dpy, x11_window,1331 new_pixmap = XCreatePixmap(x11_dpy, x11_window, 1331 1332 _caca_width * x11_font_width, 1332 1333 _caca_height * x11_font_height, 1333 1334 DefaultDepth(x11_dpy, 1334 1335 DefaultScreen(x11_dpy))); 1336 XCopyArea(x11_dpy, x11_pixmap, new_pixmap, x11_gc, 0, 0, 1337 old_width * x11_font_width, old_height * x11_font_height, 1338 0, 0); 1339 XFreePixmap(x11_dpy, x11_pixmap); 1340 x11_pixmap = new_pixmap; 1341 1335 1342 x11_char = malloc(_caca_width * _caca_height * sizeof(int)); 1336 1343 memset(x11_char, 0, _caca_width * _caca_height * sizeof(int));
Note: See TracChangeset
for help on using the changeset viewer.