chiark / gitweb /
Oops. Just noticed that the Windows front end completely ignores the
authorSimon Tatham <anakin@pobox.com>
Tue, 15 Mar 2005 14:24:45 +0000 (14:24 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 15 Mar 2005 14:24:45 +0000 (14:24 +0000)
`colour' parameter in draw_text().

[originally from svn r5507]

windows.c

index 2833969b0ba88e9c36bb903638093296cdf54fca..127311e002b3514a8605a5be200b16127493018f 100644 (file)
--- 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);
     }