Colin D Bennet c51a5caeab 2009-11-14 Colin D Bennet <colin@gibibit.com>
2009-11-14  Vladimir Serbinenko  <phcoder@gmail.com>

	Support for gfxterm in a window.

	* include/grub/gfxterm.h: New file.
	* include/grub/video.h (struct grub_video_rect): New declaration.
	(grub_video_rect_t): Likewise.
	* term/gfxterm.c (struct grub_gfxterm_window): New type.
	(refcount): New variable.
	(render_target): Likewise.
	(window): Likewise.
	(repaint_callback): Likewise.
	(grub_virtual_screen_setup): Use 'render_target'.
	(init_window): New function.
	(grub_gfxterm_init_window): Likewise.
	(grub_gfxterm_init): Check reference counter.
	Use init_window.
	(destroy_window): New function.
	(grub_gfxterm_destroy_window): Likewise.
	(grub_gfxterm_fini): Check reference counter.
	Use destroy_window.
	(redraw_screen_rect): Restore viewport.
	Use 'render_target' and 'window'.
	Call 'repaint_callback'.
	(write_char): Use 'render_target'.
	(draw_cursor): Likewise.
	(scroll_up): Restore viewport.
	Use 'render_target' and 'window'.
	Call 'repaint_callback'.
	(grub_gfxterm_cls): Likewise.
	(grub_gfxterm_refresh): Use 'window'.
	(grub_gfxterm_set_repaint_callback): New function.
	(grub_gfxterm_background_image_cmd): Use 'window'.
	(grub_gfxterm_get_term): New function.
	(GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.

	Also-By: Vladimir Serbinenko <phcoder@gmail.com>
2009-11-15 00:03:03 +01:00
..
2009-06-10 21:04:23 +00:00
2009-06-10 21:04:23 +00:00
2008-07-13 18:13:36 +00:00
2009-06-10 21:04:23 +00:00
2009-11-20 10:46:30 +01:00
2008-08-01 04:06:55 +00:00
2009-06-10 21:04:23 +00:00
2009-07-21 20:18:44 +00:00
2009-07-01 14:49:22 +00:00
2009-03-21 08:39:59 +00:00
2009-06-10 21:04:23 +00:00
2009-06-10 21:04:23 +00:00
2009-06-10 21:04:23 +00:00
2009-06-10 21:04:23 +00:00
2009-07-16 22:14:09 +00:00
2009-06-10 21:04:23 +00:00
2009-05-02 19:49:34 +00:00
2009-06-10 21:04:23 +00:00
2009-04-10 15:33:34 +00:00
2009-07-31 14:25:19 +00:00
2009-05-02 19:49:34 +00:00
2009-05-04 20:06:05 +00:00
2009-06-10 21:04:23 +00:00
2009-11-20 10:46:30 +01:00