Mercurial > dwindows
diff dwtest.c @ 2127:663467f6eee4
Code cleanup: Add constants to header for dark mode, buffer sizes and Unicode support.
Windows and OS/2 can both be built without Unicode support for legacy platforms and apps.
Some new Windows features require Unicode (notifications, edge) and Unicode is buggy on OS/2.
Can now check if Unicode is supported with the DW_FEATURE_UTF8_UNICODE feature test.
Dark mode constants added DW_DARK_MODE_DISABLED/BASIC/FULL/FORCED.
Win: Include dw.h in the WinToast glue for the constants, and improve safety in Edge glue.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 28 Jun 2020 20:34:25 +0000 |
parents | 79e5842fb609 |
children | 0132afc8c955 |
line wrap: on
line diff
--- a/dwtest.c Sun Jun 28 05:39:08 2020 +0000 +++ b/dwtest.c Sun Jun 28 20:34:25 2020 +0000 @@ -1781,6 +1781,7 @@ "Supports Multiple Document Interface window frame", "Supports status text area on notebook/tabbed controls", "Supports sending system notifications", + "Supports UTF8 encoded Unicode text", NULL }; /* @@ -1805,7 +1806,7 @@ dw_app_id_set("org.dbsoft.dwindows.dwtest", "Dynamic Windows Test"); /* Enable full dark mode on platforms that support it */ - dw_feature_set(DW_FEATURE_DARK_MODE, 2); + dw_feature_set(DW_FEATURE_DARK_MODE, DW_DARK_MODE_FULL); /* Initialize the Dynamic Windows engine */ dw_init(TRUE, argc, argv);