forked from enlightenment/efl
evas-engine-drm: Fix update of output buffer size
Adjust the ob->w/h dimensions After the framebuffer has been setup because we cannot have output buffers smaller than the framebuffer @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
4f8b8cd398
commit
89d4384b14
|
@ -83,8 +83,6 @@ evas_outbuf_setup(Evas_Engine_Info_Drm *info, int w, int h)
|
|||
/* set properties of outbuf */
|
||||
ob->w = w;
|
||||
ob->h = h;
|
||||
if (ob->w < ob->priv.mode.hdisplay) ob->w = ob->priv.mode.hdisplay;
|
||||
if (ob->h < ob->priv.mode.vdisplay) ob->h = ob->priv.mode.vdisplay;
|
||||
|
||||
ob->depth = info->info.depth;
|
||||
ob->rotation = info->info.rotation;
|
||||
|
@ -102,6 +100,9 @@ evas_outbuf_setup(Evas_Engine_Info_Drm *info, int w, int h)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (ob->w < ob->priv.mode.hdisplay) ob->w = ob->priv.mode.hdisplay;
|
||||
if (ob->h < ob->priv.mode.vdisplay) ob->h = ob->priv.mode.vdisplay;
|
||||
|
||||
info->info.output = ob->priv.fb;
|
||||
|
||||
ob->priv.num = NUM_BUFFERS;
|
||||
|
|
Loading…
Reference in New Issue