mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-02-09 16:36:34 +00:00
Don't call GetColor() if we don't have Color Quickdraw -- no good will come
of it. [originally from svn r3120]
This commit is contained in:
parent
bc19e25d71
commit
d5a214aa59
@ -1,4 +1,4 @@
|
|||||||
/* $Id: macctrls.c,v 1.35 2003/04/14 22:42:44 ben Exp $ */
|
/* $Id: macctrls.c,v 1.36 2003/04/14 22:55:12 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003 Ben Harris
|
* Copyright (c) 2003 Ben Harris
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -1952,12 +1952,15 @@ void dlg_coloursel_start(union control *ctrl, void *dlg,
|
|||||||
Point where = {-1, -1}; /* Screen with greatest colour depth */
|
Point where = {-1, -1}; /* Screen with greatest colour depth */
|
||||||
RGBColor incolour;
|
RGBColor incolour;
|
||||||
|
|
||||||
incolour.red = r * 0x0101;
|
if (HAVE_COLOR_QD()) {
|
||||||
incolour.green = g * 0x0101;
|
incolour.red = r * 0x0101;
|
||||||
incolour.blue = b * 0x0101;
|
incolour.green = g * 0x0101;
|
||||||
mcs->gotcolour = GetColor(where, "\pModify Colour:", &incolour,
|
incolour.blue = b * 0x0101;
|
||||||
&mcs->thecolour);
|
mcs->gotcolour = GetColor(where, "\pModify Colour:", &incolour,
|
||||||
ctrlevent(mcs, mc, EVENT_CALLBACK);
|
&mcs->thecolour);
|
||||||
|
ctrlevent(mcs, mc, EVENT_CALLBACK);
|
||||||
|
} else
|
||||||
|
dlg_beep(dlg);
|
||||||
}
|
}
|
||||||
|
|
||||||
int dlg_coloursel_results(union control *ctrl, void *dlg,
|
int dlg_coloursel_results(union control *ctrl, void *dlg,
|
||||||
|
Loading…
Reference in New Issue
Block a user