evas-engine-drm: Fix software_generic_update to use the correct size.

We cannot use epd->output.w/h in these calls as the setup of the
output buffer May cause a resize. Drm buffers cannot be allocated
Smaller than the framebuffer size, so evas_drm_outbuf_setup function
May resize the ob->w/h to match the framebuffer.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-07-09 11:15:39 -04:00
parent 8d53f4ca3b
commit 4f8b8cd398
1 changed files with 4 additions and 2 deletions

View File

@ -50,7 +50,8 @@ _output_setup(Evas_Engine_Info_Drm *info, int w, int h)
evas_outbuf_update_region_push,
evas_outbuf_update_region_free,
NULL, evas_outbuf_flush,
evas_outbuf_free, w, h))
evas_outbuf_free,
ob->w, ob->h))
goto on_error;
/* return the allocated render_engine structure */
@ -142,7 +143,8 @@ eng_setup(Evas *evas, void *einfo)
if (!ob) return 0;
/* if we have an existing outbuf, free it */
evas_render_engine_software_generic_update(&re->generic, ob, epd->output.w, epd->output.h);
evas_render_engine_software_generic_update(&re->generic, ob,
ob->w, ob->h);
}
/* update the info structure pointer */