mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
Fix more poorly indented/wrapped comments & code
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Keith Packard <keithp@keithp.com> Tested-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
789d64e19a
commit
6be74a9080
11 changed files with 44 additions and 30 deletions
|
|
@ -576,7 +576,7 @@ CopyFree(int channel, int client, ColormapPtr pmapSrc, ColormapPtr pmapDst)
|
|||
int nalloc;
|
||||
|
||||
switch (channel) {
|
||||
default: /* so compiler can see that everything gets initialized */
|
||||
default: /* so compiler can see that everything gets initialized */
|
||||
case REDMAP:
|
||||
ppix = (pmapSrc->clientPixelsRed)[client];
|
||||
npix = (pmapSrc->numPixelsRed)[client];
|
||||
|
|
@ -653,7 +653,7 @@ FreeCell(ColormapPtr pmap, Pixel i, int channel)
|
|||
int *pCount;
|
||||
|
||||
switch (channel) {
|
||||
default: /* so compiler can see that everything gets initialized */
|
||||
default: /* so compiler can see that everything gets initialized */
|
||||
case PSEUDOMAP:
|
||||
case REDMAP:
|
||||
pent = (EntryPtr) & pmap->red[i];
|
||||
|
|
@ -2146,7 +2146,7 @@ FreeCo(ColormapPtr pmap, int client, int color, int npixIn, Pixel * ppixIn,
|
|||
ppixClient = pmap->clientPixelsBlue[client];
|
||||
npixClient = pmap->numPixelsBlue[client];
|
||||
break;
|
||||
default: /* so compiler can see that everything gets initialized */
|
||||
default: /* so compiler can see that everything gets initialized */
|
||||
case PSEUDOMAP:
|
||||
cmask = ~((Pixel) 0);
|
||||
rgbbad = 0;
|
||||
|
|
|
|||
|
|
@ -1246,7 +1246,8 @@ HasOtherPointer(WindowPtr win, DeviceIntPtr exclude)
|
|||
* Assumption: Neither A nor B are valid windows.
|
||||
*/
|
||||
static void
|
||||
CoreFocusPointerRootNoneSwitch(DeviceIntPtr dev, WindowPtr A, /* PointerRootWin or NoneWin */
|
||||
CoreFocusPointerRootNoneSwitch(DeviceIntPtr dev,
|
||||
WindowPtr A, /* PointerRootWin or NoneWin */
|
||||
WindowPtr B, /* NoneWin or PointerRootWin */
|
||||
int mode)
|
||||
{
|
||||
|
|
@ -1290,7 +1291,8 @@ CoreFocusPointerRootNoneSwitch(DeviceIntPtr dev, WindowPtr A, /* PointerRootWi
|
|||
* Assumption: A is a valid window and not PointerRoot or None.
|
||||
*/
|
||||
static void
|
||||
CoreFocusToPointerRootOrNone(DeviceIntPtr dev, WindowPtr A, WindowPtr B, /* PointerRootWin or NoneWin */
|
||||
CoreFocusToPointerRootOrNone(DeviceIntPtr dev, WindowPtr A,
|
||||
WindowPtr B, /* PointerRootWin or NoneWin */
|
||||
int mode)
|
||||
{
|
||||
WindowPtr root;
|
||||
|
|
@ -1336,7 +1338,8 @@ CoreFocusToPointerRootOrNone(DeviceIntPtr dev, WindowPtr A, WindowPtr B,
|
|||
* Assumption: B is a valid window and not PointerRoot or None.
|
||||
*/
|
||||
static void
|
||||
CoreFocusFromPointerRootOrNone(DeviceIntPtr dev, WindowPtr A, /* PointerRootWin or NoneWin */
|
||||
CoreFocusFromPointerRootOrNone(DeviceIntPtr dev,
|
||||
WindowPtr A, /* PointerRootWin or NoneWin */
|
||||
WindowPtr B, int mode)
|
||||
{
|
||||
WindowPtr root;
|
||||
|
|
|
|||
|
|
@ -698,9 +698,10 @@ ConfineToShape(DeviceIntPtr pDev, RegionPtr shape, int *px, int *py)
|
|||
}
|
||||
|
||||
static void
|
||||
CheckPhysLimits(DeviceIntPtr pDev, CursorPtr cursor, Bool generateEvents, Bool confineToScreen, /* unused if PanoramiX on */
|
||||
ScreenPtr pScreen)
|
||||
{ /* unused if PanoramiX on */
|
||||
CheckPhysLimits(DeviceIntPtr pDev, CursorPtr cursor, Bool generateEvents,
|
||||
Bool confineToScreen, /* unused if PanoramiX on */
|
||||
ScreenPtr pScreen) /* unused if PanoramiX on */
|
||||
{
|
||||
HotSpot new;
|
||||
SpritePtr pSprite = pDev->spriteInfo->sprite;
|
||||
|
||||
|
|
|
|||
|
|
@ -205,7 +205,10 @@ AllocGrab(void)
|
|||
}
|
||||
|
||||
GrabPtr
|
||||
CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice, WindowPtr window, enum InputLevel grabtype, GrabMask *mask, GrabParameters *param, int type, KeyCode keybut, /* key or button */
|
||||
CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice,
|
||||
WindowPtr window, enum InputLevel grabtype, GrabMask *mask,
|
||||
GrabParameters *param, int type,
|
||||
KeyCode keybut, /* key or button */
|
||||
WindowPtr confineTo, CursorPtr cursor)
|
||||
{
|
||||
GrabPtr grab;
|
||||
|
|
|
|||
Loading…
Reference in a new issue