some new orders

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@848 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Jay Sorg 2005-03-13 03:45:27 +00:00
parent 9d61d98434
commit 37e2f7be9a
2 changed files with 10 additions and 10 deletions

View File

@ -31,6 +31,6 @@ rest: ../tcp.c ../iso.c ../mcs.c ../secure.c ../rdp.c ../rdp5.c ../orders.c ../c
svgawin.o: svgawin.c svgawin.o: svgawin.c
$(CC) $(CFLAGS) -c $*.c $(CC) $(CFLAGS) -c $*.c
clean: clean:
rm svgardesktop rm -f svgardesktop
rm *.o rm -f *.o
rm ../*.o rm -f ../*.o

View File

@ -1,7 +1,7 @@
/* -*- c-basic-offset: 8 -*- /* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client. rdesktop: A Remote Desktop Protocol client.
User interface services - SVGA lib User interface services - SVGA lib
Copyright (C) Jay Sorg 2004 Copyright (C) Jay Sorg 2004-2005
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
@ -29,7 +29,6 @@
#include <pwd.h> // getpwuid #include <pwd.h> // getpwuid
#include <stdarg.h> // va_list va_start va_end #include <stdarg.h> // va_list va_start va_end
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <linux/keyboard.h> #include <linux/keyboard.h>
#include <linux/kd.h> #include <linux/kd.h>
@ -43,7 +42,8 @@ int g_height = 600;
int g_width = 800; int g_width = 800;
int g_server_bpp = 8; int g_server_bpp = 8;
int g_encryption = 1; int g_encryption = 1;
int g_desktop_save =1; int g_desktop_save = 1;
int g_polygon_ellipse_orders = 0;
int g_bitmap_cache = 1; int g_bitmap_cache = 1;
int g_bitmap_cache_persist_enable = False; int g_bitmap_cache_persist_enable = False;
int g_bitmap_cache_precache = True; int g_bitmap_cache_precache = True;
@ -129,13 +129,13 @@ typedef struct
myrect* head_rect = 0; myrect* head_rect = 0;
//*****************************************************************************
// Keyboard stuff - PeterS // Keyboard stuff - PeterS
static void setled(int mask, int state) static void setled(int mask, int state)
{ {
int fd; int fd;
long int leds; long int leds;
if (( fd=open("/dev/console", O_NOCTTY)) != -1 ) if (( fd=open("/dev/console", O_NOCTTY)) != -1 )
{ {
if (ioctl (fd, KDGETLED, &leds) != -1) if (ioctl (fd, KDGETLED, &leds) != -1)
@ -144,8 +144,8 @@ static void setled(int mask, int state)
if (state) if (state)
leds |= mask; leds |= mask;
else else
leds &= ~mask; leds &= ~mask;
ioctl (fd, KDSETLED, leds); ioctl (fd, KDSETLED, leds);
} }
close(fd); close(fd);
} }