mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 22:02:14 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
1376
modules/rosapps/applications/net/tsclient/rdesktop/vnc/vnc.c
Normal file
1376
modules/rosapps/applications/net/tsclient/rdesktop/vnc/vnc.c
Normal file
File diff suppressed because it is too large
Load diff
68
modules/rosapps/applications/net/tsclient/rdesktop/vnc/vnc.h
Normal file
68
modules/rosapps/applications/net/tsclient/rdesktop/vnc/vnc.h
Normal file
|
@ -0,0 +1,68 @@
|
|||
#ifndef VNC_H
|
||||
#define VNC_H
|
||||
|
||||
#define BOOL rfb_BOOL
|
||||
#include <rfb/rfb.h>
|
||||
#undef BOOL
|
||||
|
||||
typedef unsigned int vncPixel;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint16_t w, h;
|
||||
uint16_t linew;
|
||||
rfbPixelFormat *format;
|
||||
char *data;
|
||||
BOOL owner;
|
||||
}
|
||||
vncBuffer;
|
||||
|
||||
extern int vncPreparedClientSocket;
|
||||
extern int vncPreparedServerSocket;
|
||||
|
||||
/* - Buffer management */
|
||||
extern vncBuffer *vncNewBuffer(int w, int h, int depth);
|
||||
extern vncBuffer *vncDupBuffer(vncBuffer * b);
|
||||
extern void vncDeleteBuffer(vncBuffer * b);
|
||||
|
||||
/* - Colourmaps */
|
||||
typedef struct
|
||||
{
|
||||
uint8_t r, g, b;
|
||||
}
|
||||
vncColour;
|
||||
|
||||
extern void vncSetColourMap(rfbScreenInfoPtr s, rfbColourMap * m);
|
||||
extern rfbColourMap *vncNewColourMap(rfbScreenInfoPtr s, int n);
|
||||
extern void vncSetColourMapEntry(rfbColourMap * m, int i, vncPixel r, vncPixel g, vncPixel b);
|
||||
extern void vncDeleteColourMap(rfbColourMap * m);
|
||||
|
||||
/* - Simple pixel manipulation */
|
||||
extern vncPixel vncGetPixel(vncBuffer * b, int x, int y);
|
||||
extern void vncSetPixel(vncBuffer * b, int x, int y, vncPixel c);
|
||||
|
||||
/* - Drawing primitives */
|
||||
extern void vncSetRect(rfbScreenInfoPtr s, int x, int y, int w, int h, vncPixel c);
|
||||
extern void vncCopyBlit(rfbScreenInfoPtr s, int x, int y, int w, int h, int srcx, int srcy);
|
||||
extern void vncCopyBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h,
|
||||
vncBuffer * b, int srcx, int srcy);
|
||||
extern void vncTransBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h,
|
||||
vncBuffer * b, int srcx, int srcy, int bg);
|
||||
extern void vncXorBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h,
|
||||
vncBuffer * b, int srcx, int srcy);
|
||||
extern void vncAndBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h,
|
||||
vncBuffer * b, int srcx, int srcy);
|
||||
extern vncBuffer *vncGetRect(rfbScreenInfoPtr s, int x, int y, int w, int h);
|
||||
|
||||
// - Low level VNC update primitives upon which the rest are based
|
||||
extern void vncQueueCopyRect(rfbScreenInfoPtr s, int x, int y, int w, int h, int src_x, int src_y);
|
||||
extern void vncQueueUpdate(rfbScreenInfoPtr s, int x, int y, int w, int h);
|
||||
|
||||
/* cursor */
|
||||
extern rfbCursorPtr vncNewCursor(vncBuffer * mask, vncBuffer * pointer, int hotx, int hoty);
|
||||
extern void vncSetCursor(rfbScreenInfoPtr s, rfbCursorPtr c);
|
||||
|
||||
int vncListenAtTcpAddr(unsigned short port);
|
||||
void vncPrintStats();
|
||||
|
||||
#endif
|
1405
modules/rosapps/applications/net/tsclient/rdesktop/vnc/x11stubs.c
Normal file
1405
modules/rosapps/applications/net/tsclient/rdesktop/vnc/x11stubs.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,33 @@
|
|||
#ifndef NOXKEYMAP_H
|
||||
#define NOXKEYMAP_H
|
||||
|
||||
/* Fake a few X11 calls */
|
||||
|
||||
#define XK_MISCELLANY
|
||||
#include <rfb/rfb.h>
|
||||
#include <rfb/keysym.h>
|
||||
|
||||
#define NoSymbol 0L
|
||||
#define ShiftMask (1<<0)
|
||||
#define LockMask (1<<1)
|
||||
#define ControlMask (1<<2)
|
||||
#define Mod1Mask (1<<3)
|
||||
#define Mod2Mask (1<<4)
|
||||
#define Mod3Mask (1<<5)
|
||||
#define Mod4Mask (1<<6)
|
||||
#define Mod5Mask (1<<7)
|
||||
#define Button1 1
|
||||
#define Button2 2
|
||||
#define Button3 3
|
||||
#define Button4 4
|
||||
#define Button5 5
|
||||
|
||||
typedef int Display;
|
||||
typedef int Window;
|
||||
typedef rfbKeySym KeySym;
|
||||
|
||||
KeySym XStringToKeysym(const char *str);
|
||||
const char *XKeysymToString(KeySym keysym);
|
||||
void XDisplayKeycodes(Display * display, int *min_keycode, int *max_keycode);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue