From d6082b694129df97fcbe027d30655d2f0225fdca Mon Sep 17 00:00:00 2001 From: dscho Date: Wed, 26 Sep 2001 10:34:56 +0000 Subject: adapted pnmshow to aligned width --- main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.c') 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; -- cgit v1.2.3