Mercurial > dwindows
diff os2/dw.c @ 2245:a0c386cd332b
OS/2: Implement missing DW_CLR_DEFAULT support via WinRemovePresParam().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 19 Jan 2021 17:29:58 +0000 |
parents | 3e9c5bff0a57 |
children | 15347d28995a |
line wrap: on
line diff
--- a/os2/dw.c Tue Jan 19 16:36:58 2021 +0000 +++ b/os2/dw.c Tue Jan 19 17:29:58 2021 +0000 @@ -5572,6 +5572,11 @@ WinSetPresParam(handle, PP_FOREGROUNDCOLORINDEX, sizeof(ULONG), &fore); } + else if(fore == DW_CLR_DEFAULT) + { + WinRemovePresParam(handle, PP_FOREGROUNDCOLOR); + WinRemovePresParam(handle, PP_FOREGROUNDCOLORINDEX); + } /* Handle background */ if(back == DW_RGB_TRANSPARENT) { @@ -5607,6 +5612,11 @@ WinSetPresParam(handle, PP_BACKGROUNDCOLORINDEX, sizeof(ULONG), &back); dw_window_set_data(handle, "_dw_transparent", NULL); } + else if(back == DW_CLR_DEFAULT) + { + WinRemovePresParam(handle, PP_BACKGROUNDCOLOR); + WinRemovePresParam(handle, PP_BACKGROUNDCOLORINDEX); + } /* If this is a box... check if any of the children are transparent */ _handle_transparent(handle); return DW_ERROR_NONE;