mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 21:34:58 +02:00
Fix debug assert problem
Assert is launched while displaying delimiter settings dialog in preferences.
This commit is contained in:
parent
96fc4bc714
commit
19476bbbae
@ -32,6 +32,8 @@
|
|||||||
#include "lesDlgs.h"
|
#include "lesDlgs.h"
|
||||||
#include "EncodingMapper.h"
|
#include "EncodingMapper.h"
|
||||||
|
|
||||||
|
#define MyGetGValue(rgb) (LOBYTE((rgb)>>8))
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
const int BLINKRATE_FASTEST = 50;
|
const int BLINKRATE_FASTEST = 50;
|
||||||
@ -2807,7 +2809,10 @@ INT_PTR CALLBACK DelimiterSettingsDlg::run_dlgProc(UINT Message, WPARAM wParam,
|
|||||||
{
|
{
|
||||||
COLORREF bgColor = getCtrlBgColor(_hSelf);
|
COLORREF bgColor = getCtrlBgColor(_hSelf);
|
||||||
SetTextColor(hdcStatic, RGB(0, 0, 0));
|
SetTextColor(hdcStatic, RGB(0, 0, 0));
|
||||||
SetBkColor(hdcStatic, RGB(GetRValue(bgColor) - 30, GetGValue(bgColor) - 30, GetBValue(bgColor) - 30));
|
BYTE r = GetRValue(bgColor) - 30;
|
||||||
|
BYTE g = MyGetGValue(bgColor) - 30;
|
||||||
|
BYTE b = GetBValue(bgColor) - 30;
|
||||||
|
SetBkColor(hdcStatic, RGB(r, g, b));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user