shithub: puzzles

Download patch

ref: 134418abf77438979430f92747902a00e4473f52
parent: f64dcb909da33543b9b5c0f421be84c5c984f503
author: Simon Tatham <anakin@pobox.com>
date: Tue Mar 15 09:24:45 EST 2005

Oops. Just noticed that the Windows front end completely ignores the
`colour' parameter in draw_text().

[originally from svn r5507]

--- a/windows.c
+++ b/windows.c
@@ -227,6 +227,7 @@
 		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);
     }