Commit 5067b169 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Cursor.c: reformat comments

parent ace3d2d8
...@@ -78,10 +78,8 @@ is" without express or implied warranty. ...@@ -78,10 +78,8 @@ is" without express or implied warranty.
#undef DEBUG #undef DEBUG
/* /*
* Defined in Display.c. There are huge * Defined in Display.c. There are huge problems mixing the GC
* problems mixing the GC definition in * definition in Xlib with the server code. This must be reworked.
* Xlib with the server code. This must
* be reworked.
*/ */
extern XlibGC nxagentBitmapGC; extern XlibGC nxagentBitmapGC;
...@@ -124,11 +122,9 @@ void nxagentCursorLimits(ScreenPtr pScreen, CursorPtr pCursor, ...@@ -124,11 +122,9 @@ void nxagentCursorLimits(ScreenPtr pScreen, CursorPtr pCursor,
Bool nxagentDisplayCursor(ScreenPtr pScreen, CursorPtr pCursor) Bool nxagentDisplayCursor(ScreenPtr pScreen, CursorPtr pCursor)
{ {
/* /*
* Don't define the root cursor * Don't define the root cursor so that nxagent root window inherits
* so that nxagent root window * the parent's cursor.
* inherits the parent's cursor.
*/ */
Cursor cursor = (pCursor != rootCursor) ? nxagentCursor(pCursor, pScreen): None; Cursor cursor = (pCursor != rootCursor) ? nxagentCursor(pCursor, pScreen): None;
...@@ -191,11 +187,9 @@ Bool nxagentRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor) ...@@ -191,11 +187,9 @@ Bool nxagentRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
BitmapPad(nxagentDisplay), 0); BitmapPad(nxagentDisplay), 0);
/* /*
* If we used nxagentImageNormalize() here, * If we used nxagentImageNormalize() here, we'd swap our own cursor
* we'd swap our own cursor data in place. * data in place. Change byte_order and bitmap_bit_order in the
* Change byte_order and bitmap_bit_order * image struct to let Xlib do the swap for us.
* in the image struct to let Xlib do the
* swap for us.
*/ */
image -> byte_order = IMAGE_BYTE_ORDER; image -> byte_order = IMAGE_BYTE_ORDER;
...@@ -310,8 +304,8 @@ Bool nxagentSetCursorPosition(ScreenPtr pScreen, int x, int y, ...@@ -310,8 +304,8 @@ Bool nxagentSetCursorPosition(ScreenPtr pScreen, int x, int y,
else else
{ {
/* /*
* Calling miSetCursorPosition with generateEvent == 0 * Calling miSetCursorPosition with generateEvent == 0 causes a
* causes a crash in miPoiterUpdate(). * crash in miPoiterUpdate().
*/ */
return 1; return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment