aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/vgainit.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-08-04 17:02:16 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-08-04 17:02:16 -0400
commit774f5cd627a1fd646e6b56d9acc18f34e485a430 (patch)
treef43cd5a292e08de0f628298b5dca5c1f0dc179e7 /vgasrc/vgainit.c
parent27129d003f63d96624a90d052b9899bc7f900e07 (diff)
downloadseabios-774f5cd627a1fd646e6b56d9acc18f34e485a430.tar.gz
swcursor: Concentrate swcursor logic in swcursor.c
The software cursor code is not frequently used (only the coreboot framebuffer vga code uses it). Move its logic out of the main code and into swcursor.c. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgainit.c')
-rw-r--r--vgasrc/vgainit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vgasrc/vgainit.c b/vgasrc/vgainit.c
index 40997dbb..6249e665 100644
--- a/vgasrc/vgainit.c
+++ b/vgasrc/vgainit.c
@@ -96,9 +96,7 @@ struct segoff_s Timer_Hook_Resume VAR16 VISIBLE16;
void VISIBLE16
handle_timer_hook(void)
{
- if (!vga_emulate_text())
- return;
- vgafb_set_swcursor(GET_BDA(timer_counter) % 18 < 9);
+ swcursor_check_event();
}
static void