diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-03-27 15:54:15 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-03-27 15:54:15 +0100 |
commit | 30d42df3cb62212fba3e84e58237564f7e84feb9 (patch) | |
tree | a41153b25b25658b9a913bfb92d4d1d9f8cb633c /fbcon.c | |
parent | 89dae63a0d2a084ff3f3efc933b79fb8dd715b75 (diff) | |
download | fbida-30d42df3cb62212fba3e84e58237564f7e84feb9.tar.gz |
debug logging
Diffstat (limited to 'fbcon.c')
-rw-r--r-- | fbcon.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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; |