diff options
author | michux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2009-03-25 23:04:17 +0000 |
---|---|---|
committer | michux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2009-03-25 23:04:17 +0000 |
commit | e3d860b907b4399d3a933f1fd37d7c5565a98cec (patch) | |
tree | cd00d35815f16254b084184aa4076cc5ee704b70 | |
parent | ec8146e93a99ceedb276cee31c631d378a94b9ff (diff) | |
download | lcd4linux-e3d860b907b4399d3a933f1fd37d7c5565a98cec.tar.gz |
minor fixup
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@999 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r-- | drv_vnc.c | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -71,7 +71,6 @@ static int yres = 200; static int BPP = 4; static int clientCount = 0; -static int oldClientCount = 0; static void clientgone(rfbClientPtr cl) { @@ -88,11 +87,9 @@ static enum rfbNewClientAction newclient(rfbClientPtr cl) return RFB_CLIENT_ACCEPT; } +/* handle mouse action */ static void doptr(int buttonMask, int x, int y, rfbClientPtr cl) { - //printf("doptr\n"); -// ClientData* cd=cl->clientData; - if (x >= 0 && y >= 0 && x < xres && y < yres) { if (buttonMask) { printf("btn:%d, x:%d, y:%d\n", buttonMask, x, y); @@ -145,13 +142,11 @@ static void drv_vnc_blit_it(const int row, const int col, const int height, cons static void drv_vnc_blit(const int row, const int col, const int height, const int width) { if (rfbIsActive(server)) { - //todo blit only if client are connected... -// if (clientCount > 0) { drv_vnc_blit_it(row, col, height, width, (unsigned char *) server->frameBuffer); - rfbMarkRectAsModified(server, 0, 0, xres, yres); -// } - oldClientCount = clientCount; + if (clientCount > 0) { + rfbMarkRectAsModified(server, 0, 0, xres, yres); + } rfbProcessEvents(server, server->deferUpdateTime * 1000); } } |