# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1611077398 0 # Node ID a0c386cd332bf652bf341d96570586f00527d97a # Parent a1ac35abd5fdc09f8a578a9beb7dca09d4a64e30 OS/2: Implement missing DW_CLR_DEFAULT support via WinRemovePresParam(). diff -r a1ac35abd5fd -r a0c386cd332b os2/dw.c --- 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;