st/wgl: whitespace, formatting fixes in stw_pixelformat.c

Trivial.
This commit is contained in:
Brian Paul
2017-04-28 21:48:47 -06:00
parent ba8e2ea19a
commit 52d69c2e8d

View File

@@ -121,8 +121,7 @@ stw_pf_multisample[] = {
static void static void
stw_pixelformat_add( stw_pixelformat_add(struct stw_device *stw_dev,
struct stw_device *stw_dev,
boolean extended, boolean extended,
const struct stw_pf_color_info *color, const struct stw_pf_color_info *color,
const struct stw_pf_depth_info *depth, const struct stw_pf_depth_info *depth,
@@ -165,7 +164,8 @@ stw_pixelformat_add(
pfi->pfd.iPixelType = PFD_TYPE_RGBA; pfi->pfd.iPixelType = PFD_TYPE_RGBA;
pfi->pfd.cColorBits = color->bits.red + color->bits.green + color->bits.blue + color->bits.alpha; pfi->pfd.cColorBits =
color->bits.red + color->bits.green + color->bits.blue + color->bits.alpha;
pfi->pfd.cRedBits = color->bits.red; pfi->pfd.cRedBits = color->bits.red;
pfi->pfd.cRedShift = color->shift.red; pfi->pfd.cRedShift = color->shift.red;
pfi->pfd.cGreenBits = color->bits.green; pfi->pfd.cGreenBits = color->bits.green;
@@ -225,8 +225,7 @@ stw_pixelformat_add(
*/ */
static unsigned static unsigned
add_color_format_variants(const struct stw_pf_color_info *color_formats, add_color_format_variants(const struct stw_pf_color_info *color_formats,
unsigned num_color_formats, unsigned num_color_formats, boolean extended)
boolean extended)
{ {
struct pipe_screen *screen = stw_dev->screen; struct pipe_screen *screen = stw_dev->screen;
unsigned cfmt, ms, db, ds, acc; unsigned cfmt, ms, db, ds, acc;
@@ -308,18 +307,21 @@ stw_pixelformat_init( void )
assert(stw_dev->pixelformat_extended_count <= STW_MAX_PIXELFORMATS); assert(stw_dev->pixelformat_extended_count <= STW_MAX_PIXELFORMATS);
} }
uint uint
stw_pixelformat_get_count(void) stw_pixelformat_get_count(void)
{ {
return stw_dev->pixelformat_count; return stw_dev->pixelformat_count;
} }
uint uint
stw_pixelformat_get_extended_count(void) stw_pixelformat_get_extended_count(void)
{ {
return stw_dev->pixelformat_extended_count; return stw_dev->pixelformat_extended_count;
} }
const struct stw_pixelformat_info * const struct stw_pixelformat_info *
stw_pixelformat_get_info(int iPixelFormat) stw_pixelformat_get_info(int iPixelFormat)
{ {
@@ -339,10 +341,7 @@ stw_pixelformat_get_info( int iPixelFormat )
LONG APIENTRY LONG APIENTRY
DrvDescribePixelFormat( DrvDescribePixelFormat(HDC hdc, INT iPixelFormat, ULONG cjpfd,
HDC hdc,
INT iPixelFormat,
ULONG cjpfd,
PIXELFORMATDESCRIPTOR *ppfd) PIXELFORMATDESCRIPTOR *ppfd)
{ {
uint count; uint count;
@@ -357,6 +356,7 @@ DrvDescribePixelFormat(
if (ppfd == NULL) if (ppfd == NULL)
return count; return count;
if (cjpfd != sizeof(PIXELFORMATDESCRIPTOR)) if (cjpfd != sizeof(PIXELFORMATDESCRIPTOR))
return 0; return 0;
@@ -370,57 +370,47 @@ DrvDescribePixelFormat(
return count; return count;
} }
BOOL APIENTRY BOOL APIENTRY
DrvDescribeLayerPlane( DrvDescribeLayerPlane(HDC hdc, INT iPixelFormat, INT iLayerPlane,
HDC hdc, UINT nBytes, LPLAYERPLANEDESCRIPTOR plpd)
INT iPixelFormat,
INT iLayerPlane,
UINT nBytes,
LPLAYERPLANEDESCRIPTOR plpd )
{ {
assert(0); assert(0);
return FALSE; return FALSE;
} }
int APIENTRY int APIENTRY
DrvGetLayerPaletteEntries( DrvGetLayerPaletteEntries(HDC hdc, INT iLayerPlane, INT iStart,
HDC hdc, INT cEntries, COLORREF *pcr)
INT iLayerPlane,
INT iStart,
INT cEntries,
COLORREF *pcr )
{ {
assert(0); assert(0);
return 0; return 0;
} }
int APIENTRY int APIENTRY
DrvSetLayerPaletteEntries( DrvSetLayerPaletteEntries(HDC hdc, INT iLayerPlane, INT iStart,
HDC hdc, INT cEntries, CONST COLORREF *pcr)
INT iLayerPlane,
INT iStart,
INT cEntries,
CONST COLORREF *pcr )
{ {
assert(0); assert(0);
return 0; return 0;
} }
BOOL APIENTRY BOOL APIENTRY
DrvRealizeLayerPalette( DrvRealizeLayerPalette(HDC hdc, INT iLayerPlane, BOOL bRealize)
HDC hdc,
INT iLayerPlane,
BOOL bRealize )
{ {
assert(0); assert(0);
return FALSE; return FALSE;
} }
/* Only used by the wgl code, but have it here to avoid exporting the /* Only used by the wgl code, but have it here to avoid exporting the
* pixelformat.h functionality. * pixelformat.h functionality.
*/ */
int stw_pixelformat_choose( HDC hdc, int
CONST PIXELFORMATDESCRIPTOR *ppfd ) stw_pixelformat_choose(HDC hdc, CONST PIXELFORMATDESCRIPTOR *ppfd)
{ {
uint count; uint count;
uint index; uint index;