Module: wine
Branch: master
Commit: 666b57d62fea94365b2441462b31f3cbc0a249c7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=666b57d62fea94365b2441462…
Author: Rob Shearman <robertshearman(a)gmail.com>
Date: Fri Jul 4 23:49:32 2008 +0100
include: Remove unused file wine/rpcss_shared.h.
---
dlls/rpcrt4/rpc_binding.h | 1 -
dlls/rpcrt4/rpc_message.h | 1 -
include/wine/rpcss_shared.h | 146 -------------------------------------------
tools/make_makefiles | 1 -
4 files changed, 0 insertions(+), 149 deletions(-)
diff --git a/dlls/rpcrt4/rpc_binding.h b/dlls/rpcrt4/rpc_binding.h
index 2838037..7f446e6 100644
--- a/dlls/rpcrt4/rpc_binding.h
+++ b/dlls/rpcrt4/rpc_binding.h
@@ -21,7 +21,6 @@
#ifndef __WINE_RPC_BINDING_H
#define __WINE_RPC_BINDING_H
-#include "wine/rpcss_shared.h"
#include "rpcndr.h"
#include "security.h"
#include "wine/list.h"
diff --git a/dlls/rpcrt4/rpc_message.h b/dlls/rpcrt4/rpc_message.h
index 95eb807..7e746cb 100644
--- a/dlls/rpcrt4/rpc_message.h
+++ b/dlls/rpcrt4/rpc_message.h
@@ -21,7 +21,6 @@
#ifndef __WINE_RPC_MESSAGE_H
#define __WINE_RPC_MESSAGE_H
-#include "wine/rpcss_shared.h"
#include "rpc_defs.h"
typedef unsigned int NCA_STATUS;
diff --git a/include/wine/rpcss_shared.h b/include/wine/rpcss_shared.h
deleted file mode 100644
index 821a155..0000000
--- a/include/wine/rpcss_shared.h
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- * RPCSS shared definitions
- *
- * Copyright (C) 2002 Greg Turner
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- */
-
-#ifndef __WINE_RPCSS_SHARED_H
-#define __WINE_RPCSS_SHARED_H
-
-#include <stdarg.h>
-#include <windef.h>
-#include <winbase.h>
-#include <rpc.h>
-#include <rpcdcep.h>
-
-#define RPCSS_NP_PROTOCOL_VERSION 0x0000
-
-#define RPCSS_STRINGIFY_MACRO(x) RPCSS_STRINGIFY_MACRO2(x)
-#define RPCSS_STRINGIFY_MACRO2(x) #x
-
-#define STRINGIFIED_RPCSS_NP_PROTOCOL_VERSION \
- RPCSS_STRINGIFY_MACRO(RPCSS_NP_PROTOCOL_VERSION)
-
-/* only local communications are supported so far on this pipe.
- until this changes, we can just use a constant pipe-name */
-#define NAME_RPCSS_NAMED_PIPE \
- ("\\\\.\\pipe\\RpcssNP" STRINGIFIED_RPCSS_NP_PROTOCOL_VERSION)
-
-/* mutex is local only... perhaps this ought to be part of the pipe
- protocol for remote wine<->wine connections? */
-#define RPCSS_MASTER_MUTEX_NAME \
- ("RPCSSMasterMutex" STRINGIFIED_RPCSS_NP_PROTOCOL_VERSION)
-
-/* payloads above 1K are fragmented into multiple messages */
-#define VARDATA_PAYLOAD_BYTES 1024
-
-/* ick -- maybe we should pass a handle to a mailslot or something? */
-#define MAX_RPCSS_NP_REPLY_STRING_LEN 512
-
-/* number of microseconds/10 to wait for master mutex before giving up */
-#define MASTER_MUTEX_TIMEOUT 6000000
-
-/* number of milliseconds to wait on the master mutex after it returns BUSY */
-#define MASTER_MUTEX_WAITNAMEDPIPE_TIMEOUT 5000
-
-/* a data payload; not a normal message */
-#define RPCSS_NP_MESSAGE_TYPEID_VARDATAPAYLOADMSG 1
-typedef struct _RPCSS_NP_MESSAGE_UNION_VARDATAPAYLOADMSG {
- char payload[VARDATA_PAYLOAD_BYTES];
-} RPCSS_NP_MESSAGE_UNION_VARDATAPAYLOADMSG;
-
-/* RANMSG:
- * Simply tells the server that another rpcss instance ran.
- * The server should respond by resetting its timeout to the
- * full lazy timeout.
- */
-#define RPCSS_NP_MESSAGE_TYPEID_RANMSG 2
-typedef struct _RPCSS_NP_MESSAGE_UNION_RANMSG {
- long timeout;
-} RPCSS_NP_MESSAGE_UNION_RANMSG;
-
-/* REGISTEREPMSG:
- * Registers endpoints with the endpoint server.
- * object_count and binding_count contain the number
- * of object uuids and endpoints in the vardata payload,
- * respectively.
- */
-#define RPCSS_NP_MESSAGE_TYPEID_REGISTEREPMSG 3
-typedef struct _RPCSS_NP_MESSAGE_UNION_REGISTEREPMSG {
- RPC_SYNTAX_IDENTIFIER iface;
- int object_count;
- int binding_count;
- int no_replace;
-} RPCSS_NP_MESSAGE_UNION_REGISTEREPMSG;
-
-/* UNREGISTEREPMSG:
- * Unregisters endpoints with the endpoint server.
- * object_count and binding_count contain the number
- * of object uuids and endpoints in the vardata payload,
- * respectively.
- */
-#define RPCSS_NP_MESSAGE_TYPEID_UNREGISTEREPMSG 4
-typedef struct _RPCSS_NP_MESSAGE_UNION_UNREGISTEREPMSG {
- RPC_SYNTAX_IDENTIFIER iface;
- int object_count;
- int binding_count;
-} RPCSS_NP_MESSAGE_UNION_UNREGISTEREPMSG;
-
-/* RESOLVEEPMSG:
- * Locates an endpoint registered with the endpoint server.
- * Vardata contains a single protseq string. This is a bit
- * silly: the protseq string is probably shorter than the
- * reply (an endpoint string), which is truncated at
- * MAX_RPCSS_NP_REPLY_STRING_LEN, at least for the moment.
- * returns the empty string if the requested endpoint isn't
- * registered.
- */
-#define RPCSS_NP_MESSAGE_TYPEID_RESOLVEEPMSG 5
-typedef struct _RPCSS_NP_MESSAGE_UNION_RESOLVEEPMSG {
- RPC_SYNTAX_IDENTIFIER iface;
- UUID object;
-} RPCSS_NP_MESSAGE_UNION_RESOLVEEPMSG;
-
-typedef union {
- RPCSS_NP_MESSAGE_UNION_RANMSG ranmsg;
- RPCSS_NP_MESSAGE_UNION_VARDATAPAYLOADMSG vardatapayloadmsg;
- RPCSS_NP_MESSAGE_UNION_REGISTEREPMSG registerepmsg;
- RPCSS_NP_MESSAGE_UNION_UNREGISTEREPMSG unregisterepmsg;
- RPCSS_NP_MESSAGE_UNION_RESOLVEEPMSG resolveepmsg;
-} RPCSS_NP_MESSAGE_UNION;
-
-/* vardata_payload_size specifies the number of bytes
- * to be transferred over the pipe in VARDATAPAYLOAD
- * messages (divide by VARDATA_PAYLOAD_BYTES to
- * get the # of payloads)
- */
-typedef struct _RPCSS_NP_MESSAGE {
- UINT32 message_type;
- RPCSS_NP_MESSAGE_UNION message;
- UINT32 vardata_payload_size;
-} RPCSS_NP_MESSAGE, *PRPCSS_NP_MESSAGE;
-
-typedef union {
- /* some of these aren't used, but I guess we don't care */
- UINT as_uint;
- INT as_int;
- void *as_pvoid;
- HANDLE as_handle;
- char as_string[MAX_RPCSS_NP_REPLY_STRING_LEN]; /* FIXME: yucky */
-} RPCSS_NP_REPLY, *PRPCSS_NP_REPLY;
-
-#endif /* __WINE_RPCSS_SHARED_H */
diff --git a/tools/make_makefiles b/tools/make_makefiles
index bb49263..175c127 100755
--- a/tools/make_makefiles
+++ b/tools/make_makefiles
@@ -108,7 +108,6 @@ my %private_headers = (
"wine/port.h" => 1,
"wine/pthread.h" => 1,
"wine/rpcfc.h" => 1,
- "wine/rpcss_shared.h" => 1,
"wine/server.h" => 1,
"wine/server_protocol.h" => 1,
"wine/test.h" => 1,
Module: wine
Branch: master
Commit: db95d69f992a1618e3f407a810b74fd6f8eaffaa
URL: http://source.winehq.org/git/wine.git/?a=commit;h=db95d69f992a1618e3f407a81…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com>
Date: Fri Jul 4 15:30:51 2008 -0400
richedit: Made sure the caret position is stored when moving up/down.
The caret's x position is stored in ME_TextEditor.nUDArrowX so that when
the caret is moved up or down, it will stay along the same horizontal
position, or at the end of a line. Unfortunately, the value stored in
nUDArrowX was being unconditionally discarded in ME_ArrowKey, preventing
it from serving its purpose.
---
dlls/riched20/caret.c | 1 -
dlls/riched20/editor.c | 9 +++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index ebf6c56..4a1a8a4 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -1349,7 +1349,6 @@ ME_ArrowKey(ME_TextEditor *editor, int nVKey, BOOL extend, BOOL ctrl)
BOOL success = FALSE;
ME_CheckCharOffsets(editor);
- editor->nUDArrowX = -1;
switch(nVKey) {
case VK_LEFT:
editor->bCaretAtEnd = 0;
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 28850f9..dedc59e 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1542,10 +1542,12 @@ ME_KeyDown(ME_TextEditor *editor, WORD nKey)
{
case VK_LEFT:
case VK_RIGHT:
- case VK_UP:
- case VK_DOWN:
case VK_HOME:
case VK_END:
+ editor->nUDArrowX = -1;
+ /* fall through */
+ case VK_UP:
+ case VK_DOWN:
case VK_PRIOR:
case VK_NEXT:
ME_CommitUndo(editor); /* End coalesced undos for typed characters */
@@ -1553,6 +1555,7 @@ ME_KeyDown(ME_TextEditor *editor, WORD nKey)
return TRUE;
case VK_BACK:
case VK_DELETE:
+ editor->nUDArrowX = -1;
/* FIXME backspace and delete aren't the same, they act different wrt paragraph style of the merged paragraph */
if (GetWindowLongW(editor->hWnd, GWL_STYLE) & ES_READONLY)
return FALSE;
@@ -1583,6 +1586,8 @@ ME_KeyDown(ME_TextEditor *editor, WORD nKey)
return TRUE;
default:
+ if (nKey != VK_SHIFT && nKey != VK_CONTROL && nKey && nKey != VK_MENU)
+ editor->nUDArrowX = -1;
if (ctrl_is_down)
{
if (nKey == 'W')
Module: wine
Branch: master
Commit: 2f1c7b1610498e54cbd9a4dd3fdf4408e98ac7c4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2f1c7b1610498e54cbd9a4dd3…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com>
Date: Thu Jul 3 11:03:12 2008 -0400
user32: Increased area for scrolling via mouse drag outside scrollbar.
When dragging the scrollbar thumb with the mouse, the mouse is able to
move away from the scrollbar and keep scrolling so long as it isn't too
far away from the scrollbar. This makes it easier to quickly scroll
with the mouse.
All that this patch changes is the distance that the mouse can be moved
away from the scrollbar before it is consider outside of the scrollbar
and returns to its original position. The distances are proportional to
the size of the scrollbar.
---
dlls/user32/scroll.c | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/dlls/user32/scroll.c b/dlls/user32/scroll.c
index ddfacd6..af35c97 100644
--- a/dlls/user32/scroll.c
+++ b/dlls/user32/scroll.c
@@ -328,16 +328,25 @@ static UINT SCROLL_GetThumbVal( SCROLLBAR_INFO *infoPtr, RECT *rect,
static BOOL SCROLL_PtInRectEx( LPRECT lpRect, POINT pt, BOOL vertical )
{
RECT rect = *lpRect;
+ int scrollbarWidth;
+ /* Pad hit rect to allow mouse to be dragged outside of scrollbar and
+ * still be considered in the scrollbar. */
if (vertical)
{
- rect.left -= lpRect->right - lpRect->left;
- rect.right += lpRect->right - lpRect->left;
+ scrollbarWidth = lpRect->right - lpRect->left;
+ rect.left -= scrollbarWidth*8;
+ rect.right += scrollbarWidth*8;
+ rect.top -= scrollbarWidth*2;
+ rect.bottom += scrollbarWidth*2;
}
else
{
- rect.top -= lpRect->bottom - lpRect->top;
- rect.bottom += lpRect->bottom - lpRect->top;
+ scrollbarWidth = lpRect->bottom - lpRect->top;
+ rect.left -= scrollbarWidth*2;
+ rect.right += scrollbarWidth*2;
+ rect.top -= scrollbarWidth*8;
+ rect.bottom += scrollbarWidth*8;
}
return PtInRect( &rect, pt );
}