diff options
author | Chris Michael <cp.michael@samsung.com> | 2017-11-01 08:52:03 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2017-11-01 08:52:03 -0400 |
commit | 9021c752cb526aa69d1da90c9eeb14d77f1e1037 (patch) | |
tree | b747c7b3cad83efd118c785f2f7137d547899f32 /src/lib/ecore_drm2 | |
parent | b7ebc1cd25a9fedab65769931167542686ce6d66 (diff) | |
download | efl-9021c752cb526aa69d1da90c9eeb14d77f1e1037.tar.gz |
ecore-drm2: 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/lib/ecore_drm2')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_outputs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c index ed34da08b9..b160d0795a 100644 --- a/src/lib/ecore_drm2/ecore_drm2_outputs.c +++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c @@ -1335,7 +1335,7 @@ ecore_drm2_output_mode_set(Ecore_Drm2_Output *output, Ecore_Drm2_Output_Mode *mo buffer = output->ocrtc->buffer_id; if (sym_drmModeSetCrtc(output->fd, output->crtc_id, buffer, - x, y, &output->conn_id, 1, &mode->info) < 0) + 0, 0, &output->conn_id, 1, &mode->info) < 0) { ERR("Failed to set Mode %dx%d for Output %s: %m", mode->width, mode->height, output->name); |