Fix for 64-bit negative seek value.
[wine/multimedia.git] / graphics / ttydrv / brush.c
blob86c27246a2b988cb3efa9b6cc227c540601dac2e
1 /*
2 * TTY DC brush
4 * Copyright 1999 Patrik Stridvall
5 */
7 #include "brush.h"
8 #include "dc.h"
9 #include "debugtools.h"
10 #include "ttydrv.h"
12 DEFAULT_DEBUG_CHANNEL(ttydrv)
14 /***********************************************************************
15 * TTYDRV_DC_BRUSH_SelectObject
17 HBRUSH TTYDRV_DC_BRUSH_SelectObject(DC *dc, HBRUSH hbrush, BRUSHOBJ *brush)
19 HBRUSH hPreviousBrush;
21 TRACE("(%p, 0x%04x, %p)\n", dc, hbrush, brush);
23 hPreviousBrush = dc->w.hBrush;
24 dc->w.hBrush = hbrush;
26 return hPreviousBrush;