summaryrefslogtreecommitdiffstats
path: root/krfb
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit2bc1d72869b62af05ae4feafd878203b526da8c5 (patch)
tree2676903bb600bd9646644856e354940471ad84e2 /krfb
parent937b2991d8e78166eea904c80ad04d34607017a4 (diff)
downloadtdenetwork-2bc1d72869b62af05ae4feafd878203b526da8c5.tar.gz
tdenetwork-2bc1d72869b62af05ae4feafd878203b526da8c5.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krfb')
-rw-r--r--krfb/krfb/connectiondialog.cc4
-rw-r--r--krfb/krfb/connectiondialog.h2
-rw-r--r--krfb/krfb/invitedialog.cc4
-rw-r--r--krfb/krfb/invitedialog.h2
-rw-r--r--krfb/krfb/personalinvitedialog.cc4
-rw-r--r--krfb/krfb/personalinvitedialog.h2
-rw-r--r--krfb/krfb/rfbcontroller.cc12
-rw-r--r--krfb/krfb/rfbcontroller.h4
-rw-r--r--krfb/krfb/trayicon.cpp8
-rw-r--r--krfb/krfb/trayicon.h4
-rw-r--r--krfb/libvncserver/cursor.c32
-rw-r--r--krfb/libvncserver/example.c2
-rw-r--r--krfb/libvncserver/main.c4
-rw-r--r--krfb/libvncserver/rfb.h2
-rw-r--r--krfb/libvncserver/rfbproto.h12
-rw-r--r--krfb/libvncserver/tight.c16
-rw-r--r--krfb/libvncserver/vncev.c2
-rw-r--r--krfb/libvncserver/x11vnc.c20
-rw-r--r--krfb/srvloc/getifaddrs.h2
19 files changed, 69 insertions, 69 deletions
diff --git a/krfb/krfb/connectiondialog.cc b/krfb/krfb/connectiondialog.cc
index f881f28d..d767b5a2 100644
--- a/krfb/krfb/connectiondialog.cc
+++ b/krfb/krfb/connectiondialog.cc
@@ -26,8 +26,8 @@
#include <kiconloader.h>
#include <klocale.h>
-ConnectionDialog::ConnectionDialog( TQWidget *tqparent, const char *name )
- : KDialogBase( tqparent, name, true, i18n( "New Connection" ),
+ConnectionDialog::ConnectionDialog( TQWidget *parent, const char *name )
+ : KDialogBase( parent, name, true, i18n( "New Connection" ),
Ok|Cancel, Cancel, true )
{
m_connectWidget = new ConnectionWidget( this, "ConnectWidget" );
diff --git a/krfb/krfb/connectiondialog.h b/krfb/krfb/connectiondialog.h
index 967587a5..5f20e33a 100644
--- a/krfb/krfb/connectiondialog.h
+++ b/krfb/krfb/connectiondialog.h
@@ -30,7 +30,7 @@ class ConnectionDialog : public KDialogBase
TQ_OBJECT
public:
- ConnectionDialog( TQWidget *tqparent, const char *name );
+ ConnectionDialog( TQWidget *parent, const char *name );
~ConnectionDialog() {};
void setRemoteHost( const TQString &host );
diff --git a/krfb/krfb/invitedialog.cc b/krfb/krfb/invitedialog.cc
index 046a7a92..73d55b75 100644
--- a/krfb/krfb/invitedialog.cc
+++ b/krfb/krfb/invitedialog.cc
@@ -27,8 +27,8 @@
#include <tqlabel.h>
#include <tqpushbutton.h>
-InviteDialog::InviteDialog( TQWidget *tqparent, const char *name )
- : KDialogBase( tqparent, name, true, i18n( "Invitation" ),
+InviteDialog::InviteDialog( TQWidget *parent, const char *name )
+ : KDialogBase( parent, name, true, i18n( "Invitation" ),
User1|Close|Help, NoDefault, true )
{
m_inviteWidget = new InviteWidget( this, "InviteWidget" );
diff --git a/krfb/krfb/invitedialog.h b/krfb/krfb/invitedialog.h
index 6ce32097..9715f3e3 100644
--- a/krfb/krfb/invitedialog.h
+++ b/krfb/krfb/invitedialog.h
@@ -30,7 +30,7 @@ class InviteDialog : public KDialogBase
TQ_OBJECT
public:
- InviteDialog( TQWidget *tqparent, const char *name );
+ InviteDialog( TQWidget *parent, const char *name );
~InviteDialog() {}
void enableInviteButton( bool enable );
diff --git a/krfb/krfb/personalinvitedialog.cc b/krfb/krfb/personalinvitedialog.cc
index 1f61e392..245e0069 100644
--- a/krfb/krfb/personalinvitedialog.cc
+++ b/krfb/krfb/personalinvitedialog.cc
@@ -26,8 +26,8 @@
#include <kiconloader.h>
#include <klocale.h>
-PersonalInviteDialog::PersonalInviteDialog( TQWidget *tqparent, const char *name )
- : KDialogBase( tqparent, name, true, i18n( "Personal Invitation" ),
+PersonalInviteDialog::PersonalInviteDialog( TQWidget *parent, const char *name )
+ : KDialogBase( parent, name, true, i18n( "Personal Invitation" ),
Close, Close, true )
{
m_inviteWidget = new PersonalInviteWidget( this, "PersonalInviteWidget" );
diff --git a/krfb/krfb/personalinvitedialog.h b/krfb/krfb/personalinvitedialog.h
index 89be019c..6f28a33d 100644
--- a/krfb/krfb/personalinvitedialog.h
+++ b/krfb/krfb/personalinvitedialog.h
@@ -29,7 +29,7 @@ class PersonalInviteWidget;
class PersonalInviteDialog : public KDialogBase
{
public:
- PersonalInviteDialog( TQWidget *tqparent, const char *name );
+ PersonalInviteDialog( TQWidget *parent, const char *name );
virtual ~PersonalInviteDialog() {}
void setHost( const TQString &host, uint port );
diff --git a/krfb/krfb/rfbcontroller.cc b/krfb/krfb/rfbcontroller.cc
index 82ad4ad9..93dc5539 100644
--- a/krfb/krfb/rfbcontroller.cc
+++ b/krfb/krfb/rfbcontroller.cc
@@ -88,7 +88,7 @@ static const char* cur=
" xxx "
" ";
-static const char* tqmask=
+static const char* mask=
"xx "
"xxx "
"xxxx "
@@ -279,7 +279,7 @@ Display *PointerEvent::dpy;
int PointerEvent::buttonMask = 0;
PointerEvent::PointerEvent(int b, int _x, int _y) :
- button_tqmask(b),
+ button_mask(b),
x(_x),
y(_y) {
if (!initialized) {
@@ -297,13 +297,13 @@ void PointerEvent::exec() {
screen = 0;
XTestFakeMotionEvent(dpy, screen, x, y, CurrentTime);
for(int i = 0; i < 5; i++)
- if ((buttonMask&(1<<i))!=(button_tqmask&(1<<i)))
+ if ((buttonMask&(1<<i))!=(button_mask&(1<<i)))
XTestFakeButtonEvent(dpy,
i+1,
- (button_tqmask&(1<<i))?True:False,
+ (button_mask&(1<<i))?True:False,
CurrentTime);
- buttonMask = button_tqmask;
+ buttonMask = button_mask;
}
@@ -450,7 +450,7 @@ void RFBController::startServer(int inetdFd, bool xtestGrab)
server->desktopName = desktopName.latin1();
if (!myCursor)
- myCursor = rfbMakeXCursor(19, 19, (char*) cur, (char*) tqmask);
+ myCursor = rfbMakeXCursor(19, 19, (char*) cur, (char*) mask);
server->cursor = myCursor;
passwordChanged();
diff --git a/krfb/krfb/rfbcontroller.h b/krfb/krfb/rfbcontroller.h
index d0d8af36..2316b7af 100644
--- a/krfb/krfb/rfbcontroller.h
+++ b/krfb/krfb/rfbcontroller.h
@@ -77,7 +77,7 @@ public:
};
class PointerEvent : public VNCEvent {
- int button_tqmask, x, y;
+ int button_mask, x, y;
static bool initialized;
static Display *dpy;
@@ -138,7 +138,7 @@ public:
void connectionClosed();
bool handleCheckPassword(rfbClientPtr, const char *, int);
void handleKeyEvent(bool down, KeySym keySym);
- void handlePointerEvent(int button_tqmask, int x, int y);
+ void handlePointerEvent(int button_mask, int x, int y);
enum rfbNewClientAction handleNewClient(rfbClientPtr cl);
void clipboardToServer(const TQString &text);
void handleClientGone();
diff --git a/krfb/krfb/trayicon.cpp b/krfb/krfb/trayicon.cpp
index d4b520d6..5878b633 100644
--- a/krfb/krfb/trayicon.cpp
+++ b/krfb/krfb/trayicon.cpp
@@ -25,8 +25,8 @@
#include <kiconloader.h>
#include <kpopupmenu.h>
-KPassivePopup2::KPassivePopup2(TQWidget *tqparent) :
- KPassivePopup(tqparent){
+KPassivePopup2::KPassivePopup2(TQWidget *parent) :
+ KPassivePopup(parent){
}
void KPassivePopup2::hideEvent( TQHideEvent *e )
@@ -37,9 +37,9 @@ void KPassivePopup2::hideEvent( TQHideEvent *e )
KPassivePopup2 *KPassivePopup2::message( const TQString &caption, const TQString &text,
const TQPixmap &icon,
- TQWidget *tqparent)
+ TQWidget *parent)
{
- KPassivePopup2 *pop = new KPassivePopup2( tqparent);
+ KPassivePopup2 *pop = new KPassivePopup2( parent);
pop->setView( caption, text, icon );
pop->show();
diff --git a/krfb/krfb/trayicon.h b/krfb/krfb/trayicon.h
index 21e7aac2..45e22ea7 100644
--- a/krfb/krfb/trayicon.h
+++ b/krfb/krfb/trayicon.h
@@ -32,10 +32,10 @@ class KPassivePopup2 : public KPassivePopup {
Q_OBJECT
TQ_OBJECT
public:
- KPassivePopup2(TQWidget *tqparent);
+ KPassivePopup2(TQWidget *parent);
static KPassivePopup2 *message( const TQString &caption, const TQString &text,
const TQPixmap &icon,
- TQWidget *tqparent);
+ TQWidget *parent);
signals:
void hidden();
diff --git a/krfb/libvncserver/cursor.c b/krfb/libvncserver/cursor.c
index 633cc0fe..f13eaaf9 100644
--- a/krfb/libvncserver/cursor.c
+++ b/krfb/libvncserver/cursor.c
@@ -58,7 +58,7 @@ rfbSendtqCursorShape(cl)
if ( pCursor && pCursor->width == 1 &&
pCursor->height == 1 &&
- pCursor->tqmask[0] == 0 ) {
+ pCursor->mask[0] == 0 ) {
pCursor = NULL;
}
@@ -150,9 +150,9 @@ rfbSendtqCursorShape(cl)
cl->ublen += pCursor->width*bpp2*pCursor->height;
}
- /* Prepare transparency tqmask. */
+ /* Prepare transparency mask. */
- bitmapData = (CARD8 *)pCursor->tqmask;
+ bitmapData = (CARD8 *)pCursor->mask;
for (i = 0; i < pCursor->height; i++) {
for (j = 0; j < bitmapRowBytes; j++) {
@@ -199,7 +199,7 @@ rfbSendSoftCursor(rfbClientPtr cl, Bool cursorWasChanged)
if ( pCursor && pCursor->width <= 1 &&
pCursor->height <= 1 &&
- pCursor->tqmask[0] == 0 ) {
+ pCursor->mask[0] == 0 ) {
pCursor = NULL;
}
@@ -365,12 +365,12 @@ rfbCursorPtr rfbMakeXCursor(int width,int height,char* cursorString,char* maskSt
if(*cp!=' ') cursor->source[j*w+i/8]|=bit;
if(maskString) {
- cursor->tqmask = (unsigned char*)calloc(w,height);
+ cursor->mask = (unsigned char*)calloc(w,height);
for(j=0,cp=maskString;j<height;j++)
for(i=0,bit=0x80;i<width;i++,bit=(bit&1)?0x80:bit>>1,cp++)
- if(*cp!=' ') cursor->tqmask[j*w+i/8]|=bit;
+ if(*cp!=' ') cursor->mask[j*w+i/8]|=bit;
} else
- cursor->tqmask = (unsigned char*)rfbMakeMaskForXCursor(width,height,cursor->source);
+ cursor->mask = (unsigned char*)rfbMakeMaskForXCursor(width,height,cursor->source);
return(cursor);
}
@@ -378,7 +378,7 @@ rfbCursorPtr rfbMakeXCursor(int width,int height,char* cursorString,char* maskSt
char* rfbMakeMaskForXCursor(int width,int height,char* source)
{
int i,j,w=(width+7)/8;
- char* tqmask=(char*)calloc(w,height);
+ char* mask=(char*)calloc(w,height);
unsigned char c;
for(j=0;j<height;j++)
@@ -388,14 +388,14 @@ char* rfbMakeMaskForXCursor(int width,int height,char* source)
if(j<height-1) c|=source[(j+1)*w+i];
if(i>0 && (c&0x80))
- tqmask[j*w+i-1]|=0x01;
+ mask[j*w+i-1]|=0x01;
if(i<w-1 && (c&0x01))
- tqmask[j*w+i+1]|=0x80;
+ mask[j*w+i+1]|=0x80;
- tqmask[j*w+i]|=(c<<1)|c|(c>>1);
+ mask[j*w+i]|=(c<<1)|c|(c>>1);
}
- return(tqmask);
+ return(mask);
}
void rfbFreeCursor(rfbCursorPtr cursor)
@@ -404,7 +404,7 @@ void rfbFreeCursor(rfbCursorPtr cursor)
if(cursor->richSource)
free(cursor->richSource);
free(cursor->source);
- free(cursor->tqmask);
+ free(cursor->mask);
free(cursor);
}
@@ -497,7 +497,7 @@ void MakeSoftCursor(rfbClientPtr cl, rfbCursorPtr cursor)
for(j=0;j<cursor->height;j++)
for(i=0,bit=0x80;i<cursor->width;i++,bit=(bit&1)?0x80:bit>>1)
- if(cursor->tqmask[j*w+i/8]&bit) {
+ if(cursor->mask[j*w+i/8]&bit) {
if (state) {
memcpy(cp,sp,bpp);
cp += bpp;
@@ -634,7 +634,7 @@ void rfbDrawCursor(rfbScreenInfoPtr s)
/* now the cursor has to be drawn */
for(j=0;j<y2;j++)
for(i=0;i<x2;i++)
- if((c->tqmask[(j+j1)*w+(i+i1)/8]<<((i+i1)&7))&0x80)
+ if((c->mask[(j+j1)*w+(i+i1)/8]<<((i+i1)&7))&0x80)
memcpy(s->frameBuffer+(j+y1)*rowstride+(i+x1)*bpp,
c->richSource+(j+j1)*c->width*bpp+(i+i1)*bpp,bpp);
@@ -655,7 +655,7 @@ void rfbPrintXCursor(rfbCursorPtr cursor)
if(cursor->source[j*w+i]&bit) putchar('#'); else putchar(' ');
putchar(':');
for(i=0,i1=0,bit=0x80;i1<cursor->width;i1++,i+=(bit&1)?1:0,bit=(bit&1)?0x80:bit>>1)
- if(cursor->tqmask[j*w+i]&bit) putchar('#'); else putchar(' ');
+ if(cursor->mask[j*w+i]&bit) putchar('#'); else putchar(' ');
putchar('\n');
}
}
diff --git a/krfb/libvncserver/example.c b/krfb/libvncserver/example.c
index 63f58e21..1cdda701 100644
--- a/krfb/libvncserver/example.c
+++ b/krfb/libvncserver/example.c
@@ -252,7 +252,7 @@ int main(int argc,char** argv)
initBuffer(rfbScreen->frameBuffer);
rfbDrawString(rfbScreen,&radonFont,20,100,"Hello, World!",0xffffff);
- /* This call creates a tqmask and then a cursor: */
+ /* This call creates a mask and then a cursor: */
/* rfbScreen->defaultCursor =
rfbMakeXCursor(exampleCursorWidth,exampleCursorHeight,exampleCursor,0);
*/
diff --git a/krfb/libvncserver/main.c b/krfb/libvncserver/main.c
index c9bde3fe..207e512d 100644
--- a/krfb/libvncserver/main.c
+++ b/krfb/libvncserver/main.c
@@ -413,12 +413,12 @@ static rfbCursor myCursor =
static rfbCursor myCursor =
{
source: "\000\102\044\030\044\102\000",
- tqmask: "\347\347\176\074\176\347\347",
+ mask: "\347\347\176\074\176\347\347",
width: 8, height: 7, xhot: 3, yhot: 3,
/*
width: 8, height: 7, xhot: 0, yhot: 0,
source: "\000\074\176\146\176\074\000",
- tqmask: "\176\377\377\377\377\377\176",
+ mask: "\176\377\377\377\377\377\176",
*/
foreRed: 0, foreGreen: 0, foreBlue: 0,
backRed: 0xffff, backGreen: 0xffff, backBlue: 0xffff,
diff --git a/krfb/libvncserver/rfb.h b/krfb/libvncserver/rfb.h
index ef79227c..2131c7a8 100644
--- a/krfb/libvncserver/rfb.h
+++ b/krfb/libvncserver/rfb.h
@@ -733,7 +733,7 @@ extern Bool rfbSendRectEncodingTight(rfbClientPtr cl, int x,int y,int w,int h);
typedef struct rfbCursor {
unsigned char *source; /* points to bits */
- unsigned char *tqmask; /* points to bits */
+ unsigned char *mask; /* points to bits */
unsigned short width, height, xhot, yhot; /* metrics */
unsigned short foreRed, foreGreen, foreBlue; /* device-independent colour */
unsigned short backRed, backGreen, backBlue; /* device-independent colour */
diff --git a/krfb/libvncserver/rfbproto.h b/krfb/libvncserver/rfbproto.h
index 70ad2a1a..e511006e 100644
--- a/krfb/libvncserver/rfbproto.h
+++ b/krfb/libvncserver/rfbproto.h
@@ -442,11 +442,11 @@ typedef struct {
* the last tile in each row will be correspondingly smaller. Similarly if the
* height is not an exact multiple of 16 then the height of each tile in the
* final row will also be smaller. Each tile begins with a "subencoding" type
- * byte, which is a tqmask made up of a number of bits. If the Raw bit is set
+ * byte, which is a mask made up of a number of bits. If the Raw bit is set
* then the other bits are irrelevant; w*h pixel values follow (where w and h
* are the width and height of the tile). Otherwise the tile is encoded in a
* similar way to RRE, except that the position and size of each subrectangle
- * can be specified in just two bytes. The other bits in the tqmask are as
+ * can be specified in just two bytes. The other bits in the mask are as
* follows:
*
* BackgroundSpecified - if set, a pixel value follows which specifies
@@ -589,10 +589,10 @@ typedef struct {
CARD16 imageLength;
/*
* Followed by an image of the cursor in the client's image format
- * with the following RLE tqmask compression. It begins with CARD8 that
- * specifies the number of tqmask'ed pixels that will be NOT transmitted.
- * Then follows a CARD8 that specified by the number of untqmask'd pixels
- * that will be transmitted next. Then a CARD8 with the number of tqmask'd
+ * with the following RLE mask compression. It begins with CARD8 that
+ * specifies the number of mask'ed pixels that will be NOT transmitted.
+ * Then follows a CARD8 that specified by the number of unmask'd pixels
+ * that will be transmitted next. Then a CARD8 with the number of mask'd
* pixels and so on.
*/
} rfbSoftCursorSetImage;
diff --git a/krfb/libvncserver/tight.c b/krfb/libvncserver/tight.c
index bef8f825..9dd743ac 100644
--- a/krfb/libvncserver/tight.c
+++ b/krfb/libvncserver/tight.c
@@ -1239,7 +1239,7 @@ EncodeMonoRect##bpp(buf, w, h) \
{ \
CARD##bpp *ptr; \
CARD##bpp bg; \
- unsigned int value, tqmask; \
+ unsigned int value, mask; \
int aligned_width; \
int x, y, bg_bits; \
\
@@ -1257,27 +1257,27 @@ EncodeMonoRect##bpp(buf, w, h) \
*buf++ = 0; \
continue; \
} \
- tqmask = 0x80 >> bg_bits; \
- value = tqmask; \
+ mask = 0x80 >> bg_bits; \
+ value = mask; \
for (bg_bits++; bg_bits < 8; bg_bits++) { \
- tqmask >>= 1; \
+ mask >>= 1; \
if (*ptr++ != bg) { \
- value |= tqmask; \
+ value |= mask; \
} \
} \
*buf++ = (CARD8)value; \
} \
\
- tqmask = 0x80; \
+ mask = 0x80; \
value = 0; \
if (x >= w) \
continue; \
\
for (; x < w; x++) { \
if (*ptr++ != bg) { \
- value |= tqmask; \
+ value |= mask; \
} \
- tqmask >>= 1; \
+ mask >>= 1; \
} \
*buf++ = (CARD8)value; \
} \
diff --git a/krfb/libvncserver/vncev.c b/krfb/libvncserver/vncev.c
index e2d9bf99..ba00f9c8 100644
--- a/krfb/libvncserver/vncev.c
+++ b/krfb/libvncserver/vncev.c
@@ -78,7 +78,7 @@ void doptr(int buttonMask,int x,int y,rfbClientPtr cl)
{
char buffer[1024];
if(buttonMask) {
- sprintf(buffer,"Ptr: mouse button tqmask 0x%x at %d,%d",buttonMask,x,y);
+ sprintf(buffer,"Ptr: mouse button mask 0x%x at %d,%d",buttonMask,x,y);
output(cl->screen,buffer);
}
diff --git a/krfb/libvncserver/x11vnc.c b/krfb/libvncserver/x11vnc.c
index 47d46ae8..4e298f4a 100644
--- a/krfb/libvncserver/x11vnc.c
+++ b/krfb/libvncserver/x11vnc.c
@@ -263,7 +263,7 @@ int probeX=0,probeY=0;
void probeScreen(rfbScreenInfoPtr s,int xscreen)
{
int i,j,/*pixel,i1,*/j1,
- bpp=s->rfbServerFormat.bitsPerPixel/8,/*tqmask=(1<<bpp)-1,*/
+ bpp=s->rfbServerFormat.bitsPerPixel/8,/*mask=(1<<bpp)-1,*/
rstride=s->paddedWidthInBytes;
XImage* im;
//fprintf(stderr,"/%d,%d",probeX,probeY);
@@ -433,20 +433,20 @@ int main(int argc,char** argv)
}
} else {
screen->rfbServerFormat.redShift = 0;
- if ( framebufferImage->red_tqmask )
- while ( ! ( framebufferImage->red_tqmask & (1 << screen->rfbServerFormat.redShift) ) )
+ if ( framebufferImage->red_mask )
+ while ( ! ( framebufferImage->red_mask & (1 << screen->rfbServerFormat.redShift) ) )
screen->rfbServerFormat.redShift++;
screen->rfbServerFormat.greenShift = 0;
- if ( framebufferImage->green_tqmask )
- while ( ! ( framebufferImage->green_tqmask & (1 << screen->rfbServerFormat.greenShift) ) )
+ if ( framebufferImage->green_mask )
+ while ( ! ( framebufferImage->green_mask & (1 << screen->rfbServerFormat.greenShift) ) )
screen->rfbServerFormat.greenShift++;
screen->rfbServerFormat.blueShift = 0;
- if ( framebufferImage->blue_tqmask )
- while ( ! ( framebufferImage->blue_tqmask & (1 << screen->rfbServerFormat.blueShift) ) )
+ if ( framebufferImage->blue_mask )
+ while ( ! ( framebufferImage->blue_mask & (1 << screen->rfbServerFormat.blueShift) ) )
screen->rfbServerFormat.blueShift++;
- screen->rfbServerFormat.redMax = framebufferImage->red_tqmask >> screen->rfbServerFormat.redShift;
- screen->rfbServerFormat.greenMax = framebufferImage->green_tqmask >> screen->rfbServerFormat.greenShift;
- screen->rfbServerFormat.blueMax = framebufferImage->blue_tqmask >> screen->rfbServerFormat.blueShift;
+ screen->rfbServerFormat.redMax = framebufferImage->red_mask >> screen->rfbServerFormat.redShift;
+ screen->rfbServerFormat.greenMax = framebufferImage->green_mask >> screen->rfbServerFormat.greenShift;
+ screen->rfbServerFormat.blueMax = framebufferImage->blue_mask >> screen->rfbServerFormat.blueShift;
}
backupImage = malloc(screen->height*screen->paddedWidthInBytes);
diff --git a/krfb/srvloc/getifaddrs.h b/krfb/srvloc/getifaddrs.h
index d169b8e4..d0514eca 100644
--- a/krfb/srvloc/getifaddrs.h
+++ b/krfb/srvloc/getifaddrs.h
@@ -56,7 +56,7 @@ struct kde_ifaddrs
unsigned int ifa_flags; /* Flags as from SIOCGIFFLAGS ioctl. */
struct sockaddr *ifa_addr; /* Network address of this interface. */
- struct sockaddr *ifa_netmask; /* Nettqmask of this interface. */
+ struct sockaddr *ifa_netmask; /* Netmask of this interface. */
union
{
/* At most one of the following two is valid. If the IFF_BROADCAST