summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authordscho <dscho>2001-09-26 10:34:56 +0000
committerdscho <dscho>2001-09-26 10:34:56 +0000
commitd6082b694129df97fcbe027d30655d2f0225fdca (patch)
treeb43cb24a120e268a8ad772d6d382141aa2f8c44b /main.c
parent74c7c6cd847cdf062864af1d7826785d0584731b (diff)
downloadlibtdevnc-d6082b694129df97fcbe027d30655d2f0225fdca.tar.gz
libtdevnc-d6082b694129df97fcbe027d30655d2f0225fdca.zip
adapted pnmshow to aligned width
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index cb33583..e0efb8f 100644
--- a/main.c
+++ b/main.c
@@ -345,6 +345,9 @@ rfbScreenInfoPtr rfbDefaultScreenInit(int argc,char** argv,int width,int height,
rfbScreenInfoPtr rfbScreen=malloc(sizeof(rfbScreenInfo));
rfbPixelFormat* format=&rfbScreen->rfbServerFormat;
+ if(width&3)
+ fprintf(stderr,"WARNING: Width (%d) is not a multiple of 4. VncViewer has problems with that.\n",width);
+
rfbScreen->rfbPort=5900;
rfbScreen->socketInitDone=FALSE;
rfbScreen->inetdSock=-1;