summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-04-25 17:25:52 +0900
committerHermet Park <hermetpark@gmail.com>2019-04-25 17:25:52 +0900
commitb37e6a4df6d01dc2fd7e96dee3a7c3b4ed4ce78d (patch)
tree7d7e4fbce2bed18e79ee8f3d425e091895d7170c
parent815535eebe25b5cec95a7ee676d345c4d7c4ff61 (diff)
elementry win: support msaa, stencil and depth bits for wayland.
-rw-r--r--src/lib/elementary/efl_ui_win.c49
1 files changed, 25 insertions, 24 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 1434ea0ed2..9091e56e73 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -5409,33 +5409,34 @@ _elm_win_finalize_internal(Eo *obj, Efl_Ui_Win_Data *sd, const char *name, Efl_U
5409 if (parent) parent_id = elm_win_window_id_get(parent); 5409 if (parent) parent_id = elm_win_window_id_get(parent);
5410 for (i = 0; i < p; i++) 5410 for (i = 0; i < p; i++)
5411 { 5411 {
5412 int opt[20], opt_i = 0;
5413
5414 if (_elm_config->vsync)
5415 {
5416 opt[opt_i++] = ECORE_EVAS_OPT_VSYNC;
5417 opt[opt_i++] = 1;
5418 }
5419 if (gl_depth)
5420 {
5421 opt[opt_i++] = ECORE_EVAS_OPT_GL_DEPTH;
5422 opt[opt_i++] = gl_depth;
5423 }
5424 if (gl_stencil)
5425 {
5426 opt[opt_i++] = ECORE_EVAS_OPT_GL_STENCIL;
5427 opt[opt_i++] = gl_stencil;
5428 }
5429 if (gl_msaa)
5430 {
5431 opt[opt_i++] = ECORE_EVAS_OPT_GL_MSAA;
5432 opt[opt_i++] = gl_msaa;
5433 }
5434 opt[opt_i] = 0;
5435
5412 if (!strcmp(enginelist[i], ELM_SOFTWARE_X11)) 5436 if (!strcmp(enginelist[i], ELM_SOFTWARE_X11))
5413 tmp_sd.ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, 0, 0); 5437 tmp_sd.ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, 0, 0);
5414 else if (!strcmp(enginelist[i], ELM_OPENGL_X11)) 5438 else if (!strcmp(enginelist[i], ELM_OPENGL_X11))
5415 { 5439 {
5416 int opt[20], opt_i = 0;
5417
5418 if (_elm_config->vsync)
5419 {
5420 opt[opt_i++] = ECORE_EVAS_GL_X11_OPT_VSYNC;
5421 opt[opt_i++] = 1;
5422 }
5423 if (gl_depth)
5424 {
5425 opt[opt_i++] = ECORE_EVAS_GL_X11_OPT_GL_DEPTH;
5426 opt[opt_i++] = gl_depth;
5427 }
5428 if (gl_stencil)
5429 {
5430 opt[opt_i++] = ECORE_EVAS_GL_X11_OPT_GL_STENCIL;
5431 opt[opt_i++] = gl_stencil;
5432 }
5433 if (gl_msaa)
5434 {
5435 opt[opt_i++] = ECORE_EVAS_GL_X11_OPT_GL_MSAA;
5436 opt[opt_i++] = gl_msaa;
5437 }
5438 opt[opt_i] = 0;
5439 if (opt_i > 0) 5440 if (opt_i > 0)
5440 tmp_sd.ee = ecore_evas_gl_x11_options_new(NULL, 0, 0, 0, 0, 0, opt); 5441 tmp_sd.ee = ecore_evas_gl_x11_options_new(NULL, 0, 0, 0, 0, 0, opt);
5441 else 5442 else
@@ -5444,7 +5445,7 @@ _elm_win_finalize_internal(Eo *obj, Efl_Ui_Win_Data *sd, const char *name, Efl_U
5444 else if (!strcmp(enginelist[i], ELM_WAYLAND_SHM)) 5445 else if (!strcmp(enginelist[i], ELM_WAYLAND_SHM))
5445 tmp_sd.ee = _wayland_shm_new(NULL, parent_id, 0, 0, 0, 0, 0); 5446 tmp_sd.ee = _wayland_shm_new(NULL, parent_id, 0, 0, 0, 0, 0);
5446 else if (!strcmp(enginelist[i], ELM_WAYLAND_EGL)) 5447 else if (!strcmp(enginelist[i], ELM_WAYLAND_EGL))
5447 tmp_sd.ee = _wayland_egl_new(NULL, parent_id, 0, 0, 0, 0, 0, NULL); 5448 tmp_sd.ee = _wayland_egl_new(NULL, parent_id, 0, 0, 0, 0, 0, (opt_i > 0) ? opt : NULL);
5448 else if (!strcmp(enginelist[i], ELM_SOFTWARE_WIN32)) 5449 else if (!strcmp(enginelist[i], ELM_SOFTWARE_WIN32))
5449 tmp_sd.ee = ecore_evas_software_gdi_new(NULL, 0, 0, 1, 1); 5450 tmp_sd.ee = ecore_evas_software_gdi_new(NULL, 0, 0, 1, 1);
5450 else if (!strcmp(enginelist[i], ELM_SOFTWARE_DDRAW)) 5451 else if (!strcmp(enginelist[i], ELM_SOFTWARE_DDRAW))