diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2012-03-12 22:07:45 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2012-03-12 22:07:45 -0700 |
commit | 288961c60f5e7472a61a0c4cc65d3dc568148114 (patch) | |
tree | 5dfbd02551c51b40709c800c8369879791265660 /xorg/X11R7.6/rdp/rdpup.c | |
parent | 746f14ffddaf4b50e09d16a8c61adac0aaec929d (diff) | |
download | xrdp-proprietary-288961c60f5e7472a61a0c4cc65d3dc568148114.tar.gz xrdp-proprietary-288961c60f5e7472a61a0c4cc65d3dc568148114.zip |
xorg: X11rdp
Diffstat (limited to 'xorg/X11R7.6/rdp/rdpup.c')
-rw-r--r-- | xorg/X11R7.6/rdp/rdpup.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/xorg/X11R7.6/rdp/rdpup.c b/xorg/X11R7.6/rdp/rdpup.c index 0e9468ab..9d8b4703 100644 --- a/xorg/X11R7.6/rdp/rdpup.c +++ b/xorg/X11R7.6/rdp/rdpup.c @@ -282,7 +282,7 @@ rdpup_recv_msg(struct stream* s) static int process_screen_size_msg(int width, int height, int bpp) { - RRScreenSizePtr pSize; + //RRScreenSizePtr pSize; int mmwidth; int mmheight; //int error; @@ -314,8 +314,8 @@ process_screen_size_msg(int width, int height, int bpp) } mmwidth = PixelToMM(width); mmheight = PixelToMM(height); - pSize = RRRegisterSize(g_pScreen, width, height, mmwidth, mmheight); - RRSetCurrentConfig(g_pScreen, RR_Rotate_0, 0, pSize); + //pSize = RRRegisterSize(g_pScreen, width, height, mmwidth, mmheight); + //RRSetCurrentConfig(g_pScreen, RR_Rotate_0, 0, pSize); if ((g_rdpScreen.width != width) || (g_rdpScreen.height != height)) { //error = RRSetScreenConfig(g_pScreen, RR_Rotate_0, 0, pSize); @@ -445,6 +445,15 @@ rdpup_init(void) char text[256]; int i; + if (!g_directory_exist("/tmp/.xrdp")) + { + if (!g_create_dir("/tmp/.xrdp")) + { + ErrorF("rdpup_init: g_create_dir failed\n"); + return 0; + } + g_chmod_hex("/tmp/.xrdp", 0x1777); + } i = atoi(display); if (i < 1) { |