From 30d42df3cb62212fba3e84e58237564f7e84feb9 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 27 Mar 2019 15:54:15 +0100 Subject: debug logging --- fbcon.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'fbcon.c') diff --git a/fbcon.c b/fbcon.c index e9f66bd..2ed9a43 100644 --- a/fbcon.c +++ b/fbcon.c @@ -179,17 +179,14 @@ static void cleanup_and_exit(int code) static void console_switch_suspend(void) { - fprintf(stderr, "%s: start ...\n", __func__); active = false; gfx->suspend_display(); libinput_suspend(kbd); logind_release_control(); - fprintf(stderr, "%s: ... done\n", __func__); } static void console_switch_resume(void) { - fprintf(stderr, "%s: start ...\n", __func__); logind_take_control(); libinput_resume(kbd); gfx->resume_display(); @@ -197,7 +194,6 @@ static void console_switch_resume(void) state2.clear++; dirty++; active = true; - fprintf(stderr, "%s: ... done\n", __func__); } /* ---------------------------------------------------------------------- */ @@ -442,13 +438,19 @@ static void fbcon_handle_keydown(struct xkb_state *state, /* change font size */ if (ctrlalt && sym == XKB_KEY_plus) { - font_size += 2; + if (font_size >= 20) + font_size += 4; + else + font_size += 2; fbcon_resize(); fbcon_write_config(); return; } if (ctrlalt && sym == XKB_KEY_minus && font_size > 8) { - font_size -= 2; + if (font_size > 20) + font_size -= 4; + else + font_size -= 2; fbcon_resize(); fbcon_write_config(); return; -- cgit