Release 20000326.
[wine/gsoc-2012-control.git] / graphics / ttydrv / pen.c
blob45fed40ca78570b5d58852db658ff7eb5962e0ee
1 /*
2 * TTY DC pen
4 * Copyright 1999 Patrik Stridvall
5 */
7 #include "dc.h"
8 #include "debugtools.h"
9 #include "pen.h"
10 #include "ttydrv.h"
12 DEFAULT_DEBUG_CHANNEL(ttydrv)
14 /***********************************************************************
15 * TTYDRV_DC_PEN_SelectObject
17 HPEN TTYDRV_DC_PEN_SelectObject(DC *dc, HBRUSH hpen, PENOBJ *pen)
19 HPEN hPreviousPen;
21 TRACE("(%p, 0x%04x, %p)\n", dc, hpen, pen);
23 hPreviousPen = dc->w.hPen;
24 dc->w.hPen = hpen;
26 return hPreviousPen;