mirror of
https://github.com/Garhoogin/NitroPaint.git
synced 2025-06-18 14:25:31 -04:00
Fix color chooser crash
This commit is contained in:
parent
36bb5deee2
commit
36d8782cc7
@ -1719,7 +1719,7 @@ static void NftrViewerOnLButtonDown(NFTRVIEWERDATA *data) {
|
||||
cc.hInstance = NULL;
|
||||
cc.hwndOwner = hWndMain;
|
||||
cc.rgbResult = ColorConvertFromDS(orig);
|
||||
cc.lpCustColors = NULL;
|
||||
cc.lpCustColors = data->dlgCustomColors;
|
||||
cc.Flags = 0x103;
|
||||
BOOL (WINAPI *ChooseColorFunction) (CHOOSECOLORW *) = ChooseColorW;
|
||||
if (GetMenuState(GetMenu(hWndMain), ID_VIEW_USE15BPPCOLORCHOOSER, MF_BYCOMMAND)) ChooseColorFunction = CustomChooseColor;
|
||||
|
@ -27,6 +27,7 @@ typedef struct NFTRVIEWERDATA_ {
|
||||
int spaceX; // text preview space X
|
||||
int spaceY; // text preview space Y
|
||||
COLOR palette[16]; // color palette to render with
|
||||
COLORREF dlgCustomColors[16];
|
||||
|
||||
HWND hWndMargin;
|
||||
HWND hWndPreview;
|
||||
|
Loading…
Reference in New Issue
Block a user