Sweden-Number/graphics/ttydrv/brush.c

28 lines
524 B
C
Raw Normal View History

1999-11-24 00:43:29 +01:00
/*
* TTY DC brush
*
* Copyright 1999 Patrik Stridvall
*/
#include "brush.h"
#include "dc.h"
#include "debugtools.h"
#include "ttydrv.h"
DEFAULT_DEBUG_CHANNEL(ttydrv)
/***********************************************************************
* TTYDRV_DC_BRUSH_SelectObject
*/
HBRUSH TTYDRV_DC_BRUSH_SelectObject(DC *dc, HBRUSH hbrush, BRUSHOBJ *brush)
{
1999-12-12 00:08:48 +01:00
HBRUSH hPreviousBrush;
1999-11-24 00:43:29 +01:00
1999-12-12 00:08:48 +01:00
TRACE("(%p, 0x%04x, %p)\n", dc, hbrush, brush);
hPreviousBrush = dc->w.hBrush;
dc->w.hBrush = hbrush;
return hPreviousBrush;
1999-11-24 00:43:29 +01:00
}