CVS: rdesktop/uiports nanoxwin.c,1.1,1.2

Jay Sorg <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop/uiports
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5900

Modified Files:
	nanoxwin.c 
Log Message:
much work on nanox port

Index: nanoxwin.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/uiports/nanoxwin.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** nanoxwin.c	21 Apr 2005 23:01:58 -0000	1.1
--- nanoxwin.c	23 Apr 2005 20:52:51 -0000	1.2
***************
*** 29,32 ****
--- 29,34 ----
  
  #include <stdarg.h>  /* va_list va_start va_end */
+ #include <unistd.h> /* gethostname */
+ #include <pwd.h> /* getpwuid */
  
  #include <nano-X.h>
***************
*** 53,56 ****
--- 55,62 ----
[...1045 lines suppressed...]
    /* connect to server */
!   if (!rdp_connect(g_servername, g_flags, g_domain, g_password, g_shell,
!                    g_directory))
    {
      fprintf(stderr, "Error connecting\n");
***************
*** 1095,1102 ****
--- 1505,1516 ----
    GrSetGCForeground(g_gc, 0);
    GrFillRect(g_wnd, g_gc, 0, 0, g_width, g_height);
+   /* create null cursor */
+   g_null_cursor = (GR_CURSOR_ID)ui_create_cursor(0, 0, 32, 32, 0, 0);
    /* register callbacks, set mask, and run main loop */
    GrSelectEvents(g_wnd, -1); /* all events */
    GrRegisterInput(g_sck);
    GrMainLoop(nanox_event);
+   /* free null cursor */
+   ui_destroy_cursor((void*)g_null_cursor);
    /* free graphic context */
    GrDestroyGC(g_gc);



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.