parent
a2b270e57a
commit
4f8e2d60ed
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,49 +1,49 @@
|
|||||||
/* -*- c-basic-offset: 8 -*-
|
/* -*- c-basic-offset: 8 -*-
|
||||||
rdesktop: A Remote Desktop Protocol client.
|
rdesktop: A Remote Desktop Protocol client.
|
||||||
Generics backingstore operations
|
Generics backingstore operations
|
||||||
Copyright (C) Jay Sorg 2005-2006
|
Copyright (C) Jay Sorg 2005-2006
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int bs_get_pixel(int x, int y);
|
int bs_get_pixel(int x, int y);
|
||||||
void bs_set_pixel(int x, int y, int pixel, int rop, int use_clip);
|
void bs_set_pixel(int x, int y, int pixel, int rop, int use_clip);
|
||||||
int bs_do_rop(int rop, int src, int dst);
|
int bs_do_rop(int rop, int src, int dst);
|
||||||
void bs_init(void);
|
void bs_init(void);
|
||||||
void bs_exit(void);
|
void bs_exit(void);
|
||||||
void bs_set_clip(int x, int y, int cx, int cy);
|
void bs_set_clip(int x, int y, int cx, int cy);
|
||||||
void bs_reset_clip(void);
|
void bs_reset_clip(void);
|
||||||
void bs_set_pixel_on(char * data, int x, int y, int width, int bpp,
|
void bs_set_pixel_on(char * data, int x, int y, int width, int bpp,
|
||||||
int pixel);
|
int pixel);
|
||||||
int bs_is_pixel_on(char * data, int x, int y, int width, int bpp);
|
int bs_is_pixel_on(char * data, int x, int y, int width, int bpp);
|
||||||
void bs_copy_mem(char * d, char * s, int n);
|
void bs_copy_mem(char * d, char * s, int n);
|
||||||
void bs_copy_memb(char * d, char * s, int n);
|
void bs_copy_memb(char * d, char * s, int n);
|
||||||
int bs_warp_coords(int * x, int * y, int * cx, int * cy,
|
int bs_warp_coords(int * x, int * y, int * cx, int * cy,
|
||||||
int * srcx, int * srcy);
|
int * srcx, int * srcy);
|
||||||
void bs_rect(int x, int y, int cx, int cy, int colour, int rop);
|
void bs_rect(int x, int y, int cx, int cy, int colour, int rop);
|
||||||
void bs_screenblt(int opcode, int x, int y, int cx, int cy,
|
void bs_screenblt(int opcode, int x, int y, int cx, int cy,
|
||||||
int srcx, int srcy);
|
int srcx, int srcy);
|
||||||
void bs_memblt(int opcode, int x, int y, int cx, int cy,
|
void bs_memblt(int opcode, int x, int y, int cx, int cy,
|
||||||
void * srcdata, int srcwidth, int srcheight,
|
void * srcdata, int srcwidth, int srcheight,
|
||||||
int srcx, int srcy);
|
int srcx, int srcy);
|
||||||
void bs_copy_box(char * dst, int x, int y, int cx, int cy, int line_size);
|
void bs_copy_box(char * dst, int x, int y, int cx, int cy, int line_size);
|
||||||
void bs_draw_glyph(int x, int y, char * glyph_data, int glyph_width,
|
void bs_draw_glyph(int x, int y, char * glyph_data, int glyph_width,
|
||||||
int glyph_height, int fgcolour);
|
int glyph_height, int fgcolour);
|
||||||
void bs_line(int opcode, int startx, int starty, int endx, int endy,
|
void bs_line(int opcode, int startx, int starty, int endx, int endy,
|
||||||
int pen_width, int pen_style, int pen_colour);
|
int pen_width, int pen_style, int pen_colour);
|
||||||
void bs_patblt(int opcode, int x, int y, int cx, int cy,
|
void bs_patblt(int opcode, int x, int y, int cx, int cy,
|
||||||
int brush_style, char * brush_pattern,
|
int brush_style, char * brush_pattern,
|
||||||
int brush_x_org, int brush_y_org,
|
int brush_x_org, int brush_y_org,
|
||||||
int bgcolour, int fgcolour);
|
int bgcolour, int fgcolour);
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
[main]
|
[main]
|
||||||
server=192.168.1.1
|
server=192.168.1.1
|
||||||
port=3389
|
port=3389
|
||||||
username=user1
|
username=user1
|
||||||
password=password1
|
password=password1
|
||||||
bpp=16
|
bpp=16
|
||||||
#geometry=300x400
|
#geometry=300x400
|
||||||
fullscreen
|
fullscreen
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
# makefile
|
# makefile
|
||||||
|
|
||||||
OBJS = tcp.obj iso.obj mcs.obj secure.obj rdp.obj rdp5.obj orders.obj \
|
OBJS = tcp.obj iso.obj mcs.obj secure.obj rdp.obj rdp5.obj orders.obj \
|
||||||
bitmap.obj cache.obj mppc.obj pstcache.obj channels.obj licence.obj \
|
bitmap.obj cache.obj mppc.obj pstcache.obj channels.obj licence.obj \
|
||||||
ssl_calls.obj
|
ssl_calls.obj
|
||||||
|
|
||||||
UIOBJS = uimain.obj bsops.obj win32.obj
|
UIOBJS = uimain.obj bsops.obj win32.obj
|
||||||
|
|
||||||
#-w-aus -w-rch
|
#-w-aus -w-rch
|
||||||
CFLAGS = -O2 -w-par -I.. -Ic:\borland\bcc55\include
|
CFLAGS = -O2 -w-par -I.. -Ic:\borland\bcc55\include
|
||||||
LDFLAGS = -W -Lc:\borland\bcc55\lib
|
LDFLAGS = -W -Lc:\borland\bcc55\lib
|
||||||
|
|
||||||
all: rd
|
all: rd
|
||||||
|
|
||||||
rd: $(OBJS) $(UIOBJS)
|
rd: $(OBJS) $(UIOBJS)
|
||||||
$(CC) -ewinrdesktop.exe $(LDFLAGS) $(OBJS) $(UIOBJS)
|
$(CC) -ewinrdesktop.exe $(LDFLAGS) $(OBJS) $(UIOBJS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
del /q $(OBJS) $(UIOBJS) winrdesktop.exe *.tds
|
del /q $(OBJS) $(UIOBJS) winrdesktop.exe *.tds
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,83 +1,85 @@
|
|||||||
/* -*- c-basic-offset: 8 -*-
|
/* -*- c-basic-offset: 8 -*-
|
||||||
rdesktop: A Remote Desktop Protocol client.
|
rdesktop: A Remote Desktop Protocol client.
|
||||||
main ui header
|
main ui header
|
||||||
Copyright (C) Jay Sorg 2005-2006
|
Copyright (C) Jay Sorg 2005-2006
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* in uimain.c */
|
/* in uimain.c */
|
||||||
int
|
int
|
||||||
ui_main(void);
|
ui_main(void);
|
||||||
void
|
void
|
||||||
ui_invalidate(int x, int y, int cx, int cy);
|
ui_invalidate(int x, int y, int cx, int cy);
|
||||||
int
|
int
|
||||||
ui_read_wire(void);
|
ui_read_wire(void);
|
||||||
void
|
void
|
||||||
ui_mouse_move(int x, int y);
|
ui_mouse_move(int x, int y);
|
||||||
void
|
void
|
||||||
ui_mouse_button(int button, int x, int y, int down);
|
ui_mouse_button(int button, int x, int y, int down);
|
||||||
void
|
void
|
||||||
ui_key_down(int key, int ext);
|
ui_key_down(int key, int ext);
|
||||||
void
|
void
|
||||||
ui_key_up(int key, int ext);
|
ui_key_up(int key, int ext);
|
||||||
void
|
|
||||||
ui_set_modifier_state(int code);
|
void
|
||||||
|
|
||||||
#define SPLIT_COLOUR15(c, r, g, b) \
|
ui_set_modifier_state(int code);
|
||||||
{ \
|
|
||||||
r = ((c >> 7) & 0xf8) | ((c >> 12) & 0x7); \
|
#define SPLIT_COLOUR15(c, r, g, b) \
|
||||||
g = ((c >> 2) & 0xf8) | ((c >> 8) & 0x7); \
|
{ \
|
||||||
b = ((c << 3) & 0xf8) | ((c >> 2) & 0x7); \
|
r = ((c >> 7) & 0xf8) | ((c >> 12) & 0x7); \
|
||||||
}
|
g = ((c >> 2) & 0xf8) | ((c >> 8) & 0x7); \
|
||||||
|
b = ((c << 3) & 0xf8) | ((c >> 2) & 0x7); \
|
||||||
#define SPLIT_COLOUR16(c, r, g, b) \
|
}
|
||||||
{ \
|
|
||||||
r = ((c >> 8) & 0xf8) | ((c >> 13) & 0x7); \
|
#define SPLIT_COLOUR16(c, r, g, b) \
|
||||||
g = ((c >> 3) & 0xfc) | ((c >> 9) & 0x3); \
|
{ \
|
||||||
b = ((c << 3) & 0xf8) | ((c >> 2) & 0x7); \
|
r = ((c >> 8) & 0xf8) | ((c >> 13) & 0x7); \
|
||||||
}
|
g = ((c >> 3) & 0xfc) | ((c >> 9) & 0x3); \
|
||||||
|
b = ((c << 3) & 0xf8) | ((c >> 2) & 0x7); \
|
||||||
#define SPLIT_COLOUR32(c, r, g, b) \
|
}
|
||||||
{ \
|
|
||||||
r = ((c >> 0) & 0xff); \
|
#define SPLIT_COLOUR32(c, r, g, b) \
|
||||||
g = ((c >> 8) & 0xff); \
|
{ \
|
||||||
b = ((c >> 16) & 0xff); \
|
r = ((c >> 0) & 0xff); \
|
||||||
}
|
g = ((c >> 8) & 0xff); \
|
||||||
|
b = ((c >> 16) & 0xff); \
|
||||||
#define MAKE_COLOUR15(c, r, g, b) \
|
}
|
||||||
{ \
|
|
||||||
c = ( \
|
#define MAKE_COLOUR15(c, r, g, b) \
|
||||||
(((r & 0xff) >> 3) << 10) | \
|
{ \
|
||||||
(((g & 0xff) >> 3) << 5) | \
|
c = ( \
|
||||||
(((b & 0xff) >> 3) << 0) \
|
(((r & 0xff) >> 3) << 10) | \
|
||||||
); \
|
(((g & 0xff) >> 3) << 5) | \
|
||||||
}
|
(((b & 0xff) >> 3) << 0) \
|
||||||
|
); \
|
||||||
#define MAKE_COLOUR32(c, r, g, b) \
|
}
|
||||||
{ \
|
|
||||||
c = ( \
|
#define MAKE_COLOUR32(c, r, g, b) \
|
||||||
((r & 0xff) << 16) | \
|
{ \
|
||||||
((g & 0xff) << 8) | \
|
c = ( \
|
||||||
((b & 0xff) << 0) \
|
((r & 0xff) << 16) | \
|
||||||
); \
|
((g & 0xff) << 8) | \
|
||||||
}
|
((b & 0xff) << 0) \
|
||||||
|
); \
|
||||||
#undef UI_MAX
|
}
|
||||||
#define UI_MAX(a, b) (((a) > (b)) ? (a) : (b))
|
|
||||||
#undef UI_MIN
|
#undef UI_MAX
|
||||||
#define UI_MIN(a, b) (((a) < (b)) ? (a) : (b))
|
#define UI_MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||||
|
#undef UI_MIN
|
||||||
|
#define UI_MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||||
|
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue