Sweden-Number/graphics/ttydrv/pen.c

28 lines
490 B
C
Raw Normal View History

1999-11-24 00:43:29 +01:00
/*
* TTY DC pen
*
* Copyright 1999 Patrik Stridvall
*/
#include "dc.h"
#include "debugtools.h"
#include "pen.h"
#include "ttydrv.h"
DEFAULT_DEBUG_CHANNEL(ttydrv)
/***********************************************************************
* TTYDRV_DC_PEN_SelectObject
*/
HPEN TTYDRV_DC_PEN_SelectObject(DC *dc, HBRUSH hpen, PENOBJ *pen)
{
1999-12-12 00:08:48 +01:00
HPEN hPreviousPen;
1999-11-24 00:43:29 +01:00
1999-12-12 00:08:48 +01:00
TRACE("(%p, 0x%04x, %p)\n", dc, hpen, pen);
hPreviousPen = dc->w.hPen;
dc->w.hPen = hpen;
return hPreviousPen;
1999-11-24 00:43:29 +01:00
}