From c1af3c6dc560c60a82440d5119c9565dafaafe1e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 7 May 2016 17:56:22 -0400 Subject: split up some unnecessary cross-module dependencies --- src/display.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/display.c') diff --git a/src/display.c b/src/display.c index eda9363..f8b6157 100644 --- a/src/display.c +++ b/src/display.c @@ -17,15 +17,12 @@ void runes_display_init(RunesTerm *t) runes_display_recalculate_font_metrics(t); } -void runes_display_set_window_size(RunesTerm *t) +void runes_display_set_window_size(RunesTerm *t, int width, int height) { RunesDisplay *display = &t->display; - int width, height; cairo_t *old_cr = NULL; cairo_surface_t *surface; - runes_window_backend_get_size(t, &width, &height); - if (width == display->xpixel && height == display->ypixel) { return; } @@ -79,10 +76,6 @@ void runes_display_set_window_size(RunesTerm *t) if (old_cr) { cairo_destroy(old_cr); } - - vt100_screen_set_window_size(&t->scr, - height / t->display.fonty, width / t->display.fontx); - runes_pty_backend_set_window_size(t); } void runes_display_draw_screen(RunesTerm *t) -- cgit v1.2.3-54-g00ecf