diff options
author | dscho <dscho> | 2001-10-13 15:14:27 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-10-13 15:14:27 +0000 |
commit | 9f07e222f828b7b2bf2775b9dc8cd18b22a829c1 (patch) | |
tree | 96d8ade36b70799217d3cfd9fb89193c2c1be7a0 /draw.c | |
parent | ac263ce9aa1561847427b71298861594d8623e61 (diff) | |
download | libtdevnc-9f07e222f828b7b2bf2775b9dc8cd18b22a829c1.tar.gz libtdevnc-9f07e222f828b7b2bf2775b9dc8cd18b22a829c1.zip |
rfbSelectBox, consoleFonts, too many changes
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#include "rfb.h" + +void rfbFillRect(rfbScreenInfoPtr s,int x1,int y1,int x2,int y2,Pixel col) +{ + int rowstride = s->paddedWidthInBytes, bpp = s->bitsPerPixel>>3; + int i,j; + char* colour=(char*)&col; + + if(!rfbEndianTest) + colour += 4-bpp; + for(j=y1;j<y2;j++) + for(i=x1;i<x2;i++) + memcpy(s->frameBuffer+j*rowstride+i*bpp,colour,bpp); + rfbMarkRectAsModified(s,x1,y1,x2,y2); +} + |