aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-03-15 14:24:45 +0000
committerSimon Tatham <anakin@pobox.com>2005-03-15 14:24:45 +0000
commit134418abf77438979430f92747902a00e4473f52 (patch)
tree26a1605ff032ebf1264c98b4ddce3fd1b6601f87
parentf64dcb909da33543b9b5c0f421be84c5c984f503 (diff)
downloadpuzzles-134418abf77438979430f92747902a00e4473f52.zip
puzzles-134418abf77438979430f92747902a00e4473f52.tar.gz
puzzles-134418abf77438979430f92747902a00e4473f52.tar.bz2
puzzles-134418abf77438979430f92747902a00e4473f52.tar.xz
Oops. Just noticed that the Windows front end completely ignores the
`colour' parameter in draw_text(). [originally from svn r5507]
-rw-r--r--windows.c1
1 files changed, 1 insertions, 0 deletions
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);
}