More newline and whitespace cleanups
This commit is contained in:
18
src/vnc.c
18
src/vnc.c
@@ -184,7 +184,7 @@ vnc_blit(int x, int y, int w, int h)
|
||||
|
||||
if (screenshots)
|
||||
video_screenshot((uint32_t *) rfb->frameBuffer, 0, 0, VNC_MAX_X);
|
||||
|
||||
|
||||
video_blit_complete();
|
||||
|
||||
if (! updatingSize)
|
||||
@@ -217,7 +217,7 @@ vnc_init(UNUSED(void *arg))
|
||||
updatingSize = 0;
|
||||
allowedX = scrnsz_x;
|
||||
allowedY = scrnsz_y;
|
||||
|
||||
|
||||
rfb = rfbGetScreen(0, NULL, VNC_MAX_X, VNC_MAX_Y, 8, 3, 4);
|
||||
rfb->desktopName = title;
|
||||
rfb->frameBuffer = (char *)malloc(VNC_MAX_X*VNC_MAX_Y*4);
|
||||
@@ -228,16 +228,16 @@ vnc_init(UNUSED(void *arg))
|
||||
rfb->ptrAddEvent = vnc_ptrevent;
|
||||
rfb->kbdAddEvent = vnc_kbdevent;
|
||||
rfb->newClientHook = vnc_newclient;
|
||||
|
||||
|
||||
/* Set up our current resolution. */
|
||||
rfb->width = allowedX;
|
||||
rfb->height = allowedY;
|
||||
|
||||
|
||||
rfbInitServer(rfb);
|
||||
|
||||
rfbRunEventLoop(rfb, -1, TRUE);
|
||||
}
|
||||
|
||||
|
||||
/* Set up our BLIT handlers. */
|
||||
video_setblit(vnc_blit);
|
||||
|
||||
@@ -280,13 +280,13 @@ vnc_resize(int x, int y)
|
||||
|
||||
if ((x != rfb->width || y != rfb->height) && x > 160 && y > 0) {
|
||||
vnc_log("VNC: updating resolution: %dx%d\n", x, y);
|
||||
|
||||
|
||||
allowedX = (rfb->width < x) ? rfb->width : x;
|
||||
allowedY = (rfb->width < y) ? rfb->width : y;
|
||||
|
||||
|
||||
rfb->width = x;
|
||||
rfb->height = y;
|
||||
|
||||
|
||||
iterator = rfbGetClientIterator(rfb);
|
||||
while ((cl = rfbClientIteratorNext(iterator)) != NULL) {
|
||||
LOCK(cl->updateMutex);
|
||||
@@ -295,7 +295,7 @@ vnc_resize(int x, int y)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Tell them to pause if we have no clients. */
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user