summaryrefslogtreecommitdiff
path: root/xc
diff options
context:
space:
mode:
authorbrianp <brianp>2001-01-16 18:11:03 +0000
committerbrianp <brianp>2001-01-16 18:11:03 +0000
commitabfde79fc2d1ebc8a451f63170b2b0b480d81947 (patch)
tree7d268f71c3dcc543030b97b99bbe637f5476aa2f /xc
parent0c5f1306537450bb0c3abbeae93cb925f1a885a6 (diff)
minor indentation clean-ups
Diffstat (limited to 'xc')
-rw-r--r--xc/programs/Xserver/GL/dri/dri.c40
1 files changed, 23 insertions, 17 deletions
diff --git a/xc/programs/Xserver/GL/dri/dri.c b/xc/programs/Xserver/GL/dri/dri.c
index 7d20603bb..01a8ab2c0 100644
--- a/xc/programs/Xserver/GL/dri/dri.c
+++ b/xc/programs/Xserver/GL/dri/dri.c
@@ -1646,41 +1646,47 @@ DRIPrintDrawableLock(ScreenPtr pScreen, char *msg)
}
void
-DRILock(ScreenPtr pScreen, int flags) {
+DRILock(ScreenPtr pScreen, int flags)
+{
DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pScreen);
if (!lockRefCount)
- DRM_LOCK(pDRIPriv->drmFD, pDRIPriv->pSAREA, pDRIPriv->myContext, flags);
+ DRM_LOCK(pDRIPriv->drmFD, pDRIPriv->pSAREA, pDRIPriv->myContext, flags);
lockRefCount++;
}
void
-DRIUnlock(ScreenPtr pScreen) {
+DRIUnlock(ScreenPtr pScreen)
+{
DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pScreen);
- if (lockRefCount>0) lockRefCount--;
+ if (lockRefCount > 0) {
+ lockRefCount--;
+ }
else {
- ErrorF("DRIUnlock called when not locked\n");
- return;
+ ErrorF("DRIUnlock called when not locked\n");
+ return;
}
if (!lockRefCount)
- DRM_UNLOCK(pDRIPriv->drmFD, pDRIPriv->pSAREA, pDRIPriv->myContext);
+ DRM_UNLOCK(pDRIPriv->drmFD, pDRIPriv->pSAREA, pDRIPriv->myContext);
}
void *
DRIGetSAREAPrivate(ScreenPtr pScreen)
{
- DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pScreen);
- if (!pDRIPriv) return 0;
- return (void *)(((char*)pDRIPriv->pSAREA)+sizeof(XF86DRISAREARec));
+ DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pScreen);
+ if (!pDRIPriv)
+ return 0;
+ return (void *)(((char*)pDRIPriv->pSAREA)+sizeof(XF86DRISAREARec));
}
drmContext
DRIGetContext(ScreenPtr pScreen)
{
- DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pScreen);
- if (!pDRIPriv) return 0;
- return pDRIPriv->myContext;
+ DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pScreen);
+ if (!pDRIPriv)
+ return 0;
+ return pDRIPriv->myContext;
}
/* This lets get at the unwrapped functions so that they can correctly
@@ -1690,7 +1696,7 @@ DRIGetContext(ScreenPtr pScreen)
DRIWrappedFuncsRec *
DRIGetWrappedFuncs(ScreenPtr pScreen)
{
- return &(DRI_SCREEN_PRIV(pScreen)->wrap);
+ return &(DRI_SCREEN_PRIV(pScreen)->wrap);
}
void
@@ -1698,9 +1704,9 @@ DRIQueryVersion(int *majorVersion,
int *minorVersion,
int *patchVersion)
{
- *majorVersion = XF86DRI_MAJOR_VERSION;
- *minorVersion = XF86DRI_MINOR_VERSION;
- *patchVersion = XF86DRI_PATCH_VERSION;
+ *majorVersion = XF86DRI_MAJOR_VERSION;
+ *minorVersion = XF86DRI_MINOR_VERSION;
+ *patchVersion = XF86DRI_PATCH_VERSION;
}
static void