Mercurial > dwindows
diff gtk4/dw.c @ 2997:8450b87e960c
GTK2/3/4: Implement DW_FEATURE_RENDER_SAFE. GTK2: Disabled by default.
GTK3: Disabled by default on X11, Always enabled on Wayland and other types.
GTK4: Always enabled on any display type.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 04 May 2023 02:50:45 +0000 |
parents | 7e273fec75ae |
children | 4861e9f49907 |
line wrap: on
line diff
--- a/gtk4/dw.c Thu May 04 00:49:05 2023 +0000 +++ b/gtk4/dw.c Thu May 04 02:50:45 2023 +0000 @@ -11447,6 +11447,7 @@ case DW_FEATURE_UTF8_UNICODE: case DW_FEATURE_MLE_WORD_WRAP: case DW_FEATURE_TREE: + case DW_FEATURE_RENDER_SAFE: return DW_FEATURE_ENABLED; case DW_FEATURE_WINDOW_PLACEMENT: return dw_x11_check(DW_FEATURE_ENABLED, DW_FEATURE_UNSUPPORTED); @@ -11482,6 +11483,7 @@ case DW_FEATURE_UTF8_UNICODE: case DW_FEATURE_MLE_WORD_WRAP: case DW_FEATURE_TREE: + case DW_FEATURE_RENDER_SAFE: return DW_ERROR_GENERAL; case DW_FEATURE_WINDOW_PLACEMENT: return dw_x11_check(DW_ERROR_GENERAL, DW_FEATURE_UNSUPPORTED);