diff os2/dw.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 251d050d306b
children a3f105431028
line wrap: on
line diff
--- a/os2/dw.c	Sun Jun 28 05:39:08 2020 +0000
+++ b/os2/dw.c	Sun Jun 28 20:34:25 2020 +0000
@@ -13845,6 +13845,9 @@
 {
     switch(feature)
     {
+#ifdef UNICODE
+        case DW_FEATURE_UTF8_UNICODE:
+#endif
         case DW_FEATURE_WINDOW_BORDER:
         case DW_FEATURE_MLE_WORD_WRAP:
         case DW_FEATURE_NOTEBOOK_STATUS_TEXT:
@@ -13873,6 +13876,9 @@
     switch(feature)
     {
         /* These features are supported but not configurable */
+#ifdef UNICODE
+        case DW_FEATURE_UTF8_UNICODE:
+#endif
         case DW_FEATURE_WINDOW_BORDER:
         case DW_FEATURE_MLE_WORD_WRAP:
         case DW_FEATURE_NOTEBOOK_STATUS_TEXT: