43 |
static int g_x_socket; |
static int g_x_socket; |
44 |
static Screen *g_screen; |
static Screen *g_screen; |
45 |
Window g_wnd; |
Window g_wnd; |
46 |
uint32 g_embed_wnd; |
extern uint32 g_embed_wnd; |
47 |
BOOL g_enable_compose = False; |
BOOL g_enable_compose = False; |
48 |
static GC g_gc = NULL; |
static GC g_gc = NULL; |
49 |
static Visual *g_visual; |
static Visual *g_visual; |
66 |
static int g_red_shift_l, g_blue_shift_l, g_green_shift_l; |
static int g_red_shift_l, g_blue_shift_l, g_green_shift_l; |
67 |
|
|
68 |
/* software backing store */ |
/* software backing store */ |
69 |
BOOL g_ownbackstore = True; /* We can't rely on external BackingStore */ |
extern BOOL g_ownbackstore; |
70 |
static Pixmap g_backstore = 0; |
static Pixmap g_backstore = 0; |
71 |
|
|
72 |
/* Moving in single app mode */ |
/* Moving in single app mode */ |
115 |
} |
} |
116 |
|
|
117 |
/* colour maps */ |
/* colour maps */ |
118 |
BOOL g_owncolmap = False; |
extern BOOL g_owncolmap; |
119 |
static Colormap g_xcolmap; |
static Colormap g_xcolmap; |
120 |
static uint32 *g_colmap = NULL; |
static uint32 *g_colmap = NULL; |
121 |
|
|
605 |
/* if server and xserver bpp match, */ |
/* if server and xserver bpp match, */ |
606 |
/* and arch(endian) matches, no need to translate */ |
/* and arch(endian) matches, no need to translate */ |
607 |
/* just return data */ |
/* just return data */ |
608 |
if (g_depth > 8) |
if (g_arch_match) |
609 |
if (g_arch_match) |
{ |
610 |
if (g_depth == g_server_bpp) |
if (g_depth == 15 && g_server_bpp == 15) |
611 |
return data; |
return data; |
612 |
|
if (g_depth == 16 && g_server_bpp == 16) |
613 |
|
return data; |
614 |
|
} |
615 |
|
|
616 |
size = width * height * (g_bpp / 8); |
size = width * height * (g_bpp / 8); |
617 |
out = (uint8 *) xmalloc(size); |
out = (uint8 *) xmalloc(size); |