Private funcs should be static.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@318 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
0f0bb5f281
commit
f7bfa53327
14
xwin.c
14
xwin.c
@ -122,7 +122,7 @@ static int rop2_map[] = {
|
|||||||
#define SET_FUNCTION(rop2) { if (rop2 != ROP2_COPY) XSetFunction(display, gc, rop2_map[rop2]); }
|
#define SET_FUNCTION(rop2) { if (rop2 != ROP2_COPY) XSetFunction(display, gc, rop2_map[rop2]); }
|
||||||
#define RESET_FUNCTION(rop2) { if (rop2 != ROP2_COPY) XSetFunction(display, gc, GXcopy); }
|
#define RESET_FUNCTION(rop2) { if (rop2 != ROP2_COPY) XSetFunction(display, gc, GXcopy); }
|
||||||
|
|
||||||
void
|
static void
|
||||||
mwm_hide_decorations(void)
|
mwm_hide_decorations(void)
|
||||||
{
|
{
|
||||||
PropMotifWmHints motif_hints;
|
PropMotifWmHints motif_hints;
|
||||||
@ -144,7 +144,7 @@ mwm_hide_decorations(void)
|
|||||||
(unsigned char *) &motif_hints, PROP_MOTIF_WM_HINTS_ELEMENTS);
|
(unsigned char *) &motif_hints, PROP_MOTIF_WM_HINTS_ELEMENTS);
|
||||||
}
|
}
|
||||||
|
|
||||||
PixelColour
|
static PixelColour
|
||||||
split_colour15(uint32 colour)
|
split_colour15(uint32 colour)
|
||||||
{
|
{
|
||||||
PixelColour rv;
|
PixelColour rv;
|
||||||
@ -157,7 +157,7 @@ split_colour15(uint32 colour)
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
PixelColour
|
static PixelColour
|
||||||
split_colour16(uint32 colour)
|
split_colour16(uint32 colour)
|
||||||
{
|
{
|
||||||
PixelColour rv;
|
PixelColour rv;
|
||||||
@ -170,7 +170,7 @@ split_colour16(uint32 colour)
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
PixelColour
|
static PixelColour
|
||||||
split_colour24(uint32 colour)
|
split_colour24(uint32 colour)
|
||||||
{
|
{
|
||||||
PixelColour rv;
|
PixelColour rv;
|
||||||
@ -180,7 +180,7 @@ split_colour24(uint32 colour)
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32
|
static uint32
|
||||||
make_colour16(PixelColour pc)
|
make_colour16(PixelColour pc)
|
||||||
{
|
{
|
||||||
pc.red = (pc.red * 0x1f) / 0xff;
|
pc.red = (pc.red * 0x1f) / 0xff;
|
||||||
@ -189,13 +189,13 @@ make_colour16(PixelColour pc)
|
|||||||
return (pc.red << 11) | (pc.green << 5) | pc.blue;
|
return (pc.red << 11) | (pc.green << 5) | pc.blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32
|
static uint32
|
||||||
make_colour24(PixelColour pc)
|
make_colour24(PixelColour pc)
|
||||||
{
|
{
|
||||||
return (pc.red << 16) | (pc.green << 8) | pc.blue;
|
return (pc.red << 16) | (pc.green << 8) | pc.blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32
|
static uint32
|
||||||
make_colour32(PixelColour pc)
|
make_colour32(PixelColour pc)
|
||||||
{
|
{
|
||||||
return (pc.red << 16) | (pc.green << 8) | pc.blue;
|
return (pc.red << 16) | (pc.green << 8) | pc.blue;
|
||||||
|
Loading…
Reference in New Issue
Block a user