summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/wgl/icd
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2009-01-28 13:35:18 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2009-01-28 13:35:49 +0000
commitcb70d27dd1b04ae7dc146d06a21fb32004265539 (patch)
treea9b134e5af5bbecd9a7c867a3ac9be55332ea865 /src/gallium/state_trackers/wgl/icd
parentf17eb0b13c6a2e70746edd1d882bf71adec129fb (diff)
stw: move pixelformat_describe to shared
Diffstat (limited to 'src/gallium/state_trackers/wgl/icd')
-rw-r--r--src/gallium/state_trackers/wgl/icd/stw_icd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/wgl/icd/stw_icd.c b/src/gallium/state_trackers/wgl/icd/stw_icd.c
index 94c6dfe108..5504ac19b1 100644
--- a/src/gallium/state_trackers/wgl/icd/stw_icd.c
+++ b/src/gallium/state_trackers/wgl/icd/stw_icd.c
@@ -34,6 +34,7 @@
#include "shared/stw_device.h"
#include "shared/stw_context.h"
+#include "shared/stw_pixelformat.h"
#include "icd/stw_icd.h"
#include "wgl/stw_wgl.h"
@@ -135,7 +136,7 @@ DrvDescribePixelFormat(
{
LONG r;
- r = wglDescribePixelFormat( hdc, iPixelFormat, cjpfd, ppfd );
+ r = stw_pixelformat_describe( hdc, iPixelFormat, cjpfd, ppfd );
debug_printf( "%s( 0x%p, %d, %u, 0x%p ) = %d\n",
__FUNCTION__, hdc, iPixelFormat, cjpfd, ppfd, r );
@@ -596,7 +597,8 @@ DrvSetPixelFormat(
PIXELFORMATDESCRIPTOR pfd;
BOOL r;
- wglDescribePixelFormat( hdc, iPixelFormat, sizeof( pfd ), &pfd );
+ stw_pixelformat_describe( hdc, iPixelFormat, sizeof( pfd ), &pfd );
+
r = wglSetPixelFormat( hdc, iPixelFormat, &pfd );
debug_printf( "%s( 0x%p, %d ) = %s\n", __FUNCTION__, hdc, iPixelFormat, r ? "TRUE" : "FALSE" );