aboutsummaryrefslogtreecommitdiffstats
path: root/fbcon.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-03-27 15:54:15 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-03-27 15:54:15 +0100
commit30d42df3cb62212fba3e84e58237564f7e84feb9 (patch)
treea41153b25b25658b9a913bfb92d4d1d9f8cb633c /fbcon.c
parent89dae63a0d2a084ff3f3efc933b79fb8dd715b75 (diff)
downloadfbida-30d42df3cb62212fba3e84e58237564f7e84feb9.tar.gz
debug logging
Diffstat (limited to 'fbcon.c')
-rw-r--r--fbcon.c14
1 files changed, 8 insertions, 6 deletions
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;