I've pasted below a patch to stop the Window being
resized and to give the correct size of window on
my Vista machine. Without this patch you lose some
pixels on the right hand side and bottom.

Is this the best way for me to submit patches?

Is there anyone who can test this patch
against other Windows releases to ensure it
doesn't mess things up on them?

Index: src/rpc-win.c
===================================================================
--- src/rpc-win.c       (revision 135)
+++ src/rpc-win.c       (working copy)
@@ -140,8 +140,8 @@
 //        rpclog("Updatewindowsize %i %i %i\n",x,y,ins);
         GetWindowRect(ghwnd,&r);
         MoveWindow(ghwnd,r.left,r.top,
-                     x+(GetSystemMetrics(SM_CXFIXEDFRAME)*2)+2,
-                     
y+(GetSystemMetrics(SM_CYFIXEDFRAME)*2)+GetSystemMetrics(SM_CYMENUSIZE)+GetSystemMetrics(SM_CYCAPTION)+3,
+                     x+(GetSystemMetrics(SM_CXFIXEDFRAME)*2),
+                     
y+(GetSystemMetrics(SM_CYFIXEDFRAME)*2)+GetSystemMetrics(SM_CYMENUSIZE)+GetSystemMetrics(SM_CYCAPTION),
                      TRUE);
         if (mousecapture)
         {
@@ -316,8 +316,9 @@
         ghwnd = CreateWindowEx (
            0,                   /* Extended possibilites for variation */
            szClassName,         /* Classname */
-           "RPCemu v0.7",       /* Title Text */
-           WS_OVERLAPPEDWINDOW, /* default window */
+           "RPCemu v0.7",       /* Title Text */           
+/*           WS_OVERLAPPEDWINDOW,*/ /* default window */           
+           WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | 
WS_MAXIMIZEBOX, /* overlapped window with no sizeing frame */
            CW_USEDEFAULT,       /* Windows decides the position */
            CW_USEDEFAULT,       /* where the window ends up on the screen */
            64+(GetSystemMetrics(SM_CXFIXEDFRAME)*2),/* The programs width */


Regards,
Alan

_________________________________________________________________
Make a mini you and download it into Windows Live Messenger
http://clk.atdmt.com/UKM/go/111354029/direct/01/
_______________________________________________
Rpcemu mailing list
[email protected]
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Reply via email to