diff options
author | dscho <dscho> | 2001-09-26 10:34:56 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-09-26 10:34:56 +0000 |
commit | d6082b694129df97fcbe027d30655d2f0225fdca (patch) | |
tree | b43cb24a120e268a8ad772d6d382141aa2f8c44b /main.c | |
parent | 74c7c6cd847cdf062864af1d7826785d0584731b (diff) | |
download | libtdevnc-d6082b694129df97fcbe027d30655d2f0225fdca.tar.gz libtdevnc-d6082b694129df97fcbe027d30655d2f0225fdca.zip |
adapted pnmshow to aligned width
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |