Commit f2b25c0e authored by Jason Rumney's avatar Jason Rumney
Browse files

(w32font_draw): Delete brush after using it.

parent 812099f3
......@@ -504,6 +504,7 @@ w32font_draw (s, from, to, x, y, with_background)
rect.right = x + s->width;
rect.bottom = y + ((struct font *) (s->font_info->font))->descent;
FillRect (s->hdc, &rect, brush);
DeleteObject (brush);
SetBkMode (s->hdc, TRANSPARENT);
......@@ -535,7 +536,7 @@ w32font_done_face (FRAME_PTR f, struct face *face); */
/* w32 implementation of get_bitmap for font backend.
Store bitmap data for glyph-code CODE of FONT in BITMAP. It is
intended that this method is callled from the other font-driver
intended that this method is called from the other font-driver
for actual drawing.
static int
w32font_get_bitmap (struct font *font, unsigned code,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment