summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-10-25 15:28:46 -0400
committerChris Michael <cp.michael@samsung.com>2017-10-25 15:28:46 -0400
commit5dc1c1c8ebad8b9fdad502d564b0819bf9d7bd4b (patch)
treeee123ae85909a936e8b8c8daa4aa5fc1348f9223 /src/modules
parentfa1a8583564e86e729e77560fb2faa92175387d1 (diff)
wl-drm: Fix issue of not being able to set output mode
If we pass in screen geometry here when trying to set an output mode, we can encounter "out of memory" errors from libdrm with outputs that have a high resolution. As it turns out, we should be passing 0, 0 for the x/y values when trying to set an output mode. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/wl_drm/e_mod_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c
index e435526..f533f19 100644
--- a/src/modules/wl_drm/e_mod_main.c
+++ b/src/modules/wl_drm/e_mod_main.c
@@ -580,8 +580,7 @@ _drm2_randr_apply(void)
580 if (s->config.priority > top_priority) 580 if (s->config.priority > top_priority)
581 top_priority = s->config.priority; 581 top_priority = s->config.priority;
582 582
583 ecore_drm2_output_mode_set(output, mode, s->config.geom.x, 583 ecore_drm2_output_mode_set(output, mode, 0, 0);
584 s->config.geom.y);
585 584
586 /* TODO: cannot support rotations until we support planes 585 /* TODO: cannot support rotations until we support planes
587 * and we cannot support planes until Atomic support is in */ 586 * and we cannot support planes until Atomic support is in */