From: simon Date: Tue, 15 Mar 2005 14:24:45 +0000 (+0000) Subject: Oops. Just noticed that the Windows front end completely ignores the X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/0572b5d879aec3454751a88f8171c212236c77e0 Oops. Just noticed that the Windows front end completely ignores the `colour' parameter in draw_text(). git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5507 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windows.c b/windows.c index 2833969..127311e 100644 --- a/windows.c +++ b/windows.c @@ -227,6 +227,7 @@ void draw_text(frontend *fe, int x, int y, int fonttype, int fontsize, x -= size.cx; } SetBkMode(fe->hdc_bm, TRANSPARENT); + SetTextColor(fe->hdc_bm, fe->colours[colour]); TextOut(fe->hdc_bm, x, y, text, strlen(text)); SelectObject(fe->hdc_bm, oldfont); }