aboutsummaryrefslogtreecommitdiff
path: root/hw/vga_int.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-07-04 19:49:54 +0200
committerBlue Swirl <blauwirbel@gmail.com>2012-07-14 10:50:52 +0000
commit9aa0ff0bf9588f86846d1045662f5d75b91552cb (patch)
tree8362358d0138a52be8b930600a05940ac75bfc67 /hw/vga_int.h
parentbf1bed81c9c8e0c2f3b5f16de4757ee2b5fd610a (diff)
downloadqemu-9aa0ff0bf9588f86846d1045662f5d75b91552cb.zip
qemu-9aa0ff0bf9588f86846d1045662f5d75b91552cb.tar.gz
qemu-9aa0ff0bf9588f86846d1045662f5d75b91552cb.tar.bz2
vga: Implement blinking of text cursor
Let the text cursor blink at 1.875 Hz, the original VGA cursor frequency. No timer is used, instead we rely on the fact that the display is updated periodically. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/vga_int.h')
-rw-r--r--hw/vga_int.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/vga_int.h b/hw/vga_int.h
index 3b38764..8938093 100644
--- a/hw/vga_int.h
+++ b/hw/vga_int.h
@@ -156,6 +156,8 @@ typedef struct VGACommonState {
uint32_t last_scr_width, last_scr_height; /* in pixels */
uint32_t last_depth; /* in bits */
uint8_t cursor_start, cursor_end;
+ bool cursor_visible_phase;
+ int64_t cursor_blink_time;
uint32_t cursor_offset;
unsigned int (*rgb_to_pixel)(unsigned int r,
unsigned int g, unsigned b);