[SeaBIOS] [PATCH 2/2] vgabios: Refactor get/set_cursor_shape() code