Changeset 99ce51c
- Timestamp:
- Jun 2, 2010, 9:08:18 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 678a505c
- Parents:
- 3e0147f
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
r3e0147f r99ce51c 467 467 } 468 468 469 void owl_global_ resize(owl_global *g, int lines, int cols) {469 void owl_global_check_resize(owl_global *g) { 470 470 /* resize the screen. If lines or cols is 0 use the terminal size */ 471 471 if (!g->resizepending) return; 472 472 g->resizepending = 0; 473 473 474 owl_global_get_terminal_size(&lines, &cols); 475 if (lines) g->lines = lines; 476 if (cols) g->cols = cols; 474 owl_global_get_terminal_size(&g->lines, &g->cols); 477 475 owl_window_resize(owl_window_get_screen(), g->lines, g->cols); 478 476 -
owl.c
rfa65671 r99ce51c 457 457 { 458 458 /* if a resize has been scheduled, deal with it */ 459 owl_global_ resize(&g, 0, 0);459 owl_global_check_resize(&g); 460 460 461 461 /* update the terminal if we need to */
Note: See TracChangeset
for help on using the changeset viewer.