Mercurial > MadButterfly
changeset 1117:1de8bb740c46
Add pre-created window for _cons_supp_new_with_win()
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Thu, 09 Dec 2010 00:04:17 +0800 |
parents | 9163eefa0039 |
children | b319cbbf35c2 |
files | src/cons_supp.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cons_supp.c Wed Dec 08 23:41:15 2010 +0800 +++ b/src/cons_supp.c Thu Dec 09 00:04:17 2010 +0800 @@ -46,6 +46,7 @@ struct _cons_supp_runtime { MB_DISPLAY display; + MB_WINDOW win; mbe_surface_t *surface; mbe_t *cr; @@ -365,7 +366,7 @@ mbe_init(); cmb_rt->surface = - mbe_win_surface_create(cmb_rt->display, NULL, + mbe_win_surface_create(cmb_rt->display, cmb_rt->win, MB_IFMT_ARGB32, w, h); cmb_rt->cr = mbe_create(cmb_rt->surface); @@ -428,6 +429,7 @@ } cmb_rt->display = (MB_DISPLAY)console_fd; + cmb_rt->win = NULL; cmb_rt->w = w; cmb_rt->h = h; @@ -522,7 +524,7 @@ return (mb_rt_t *)rt; } -/*! \brief Create a new runtime for existed window for X. +/*! \brief Create a new runtime for existed window for console. * * The object returned by this function must be free with * _cons_supp_free_keep_win() to prevent the window from closed.