Author: fireball
Date: Fri Sep 17 18:37:43 2010
New Revision: 48789
URL:
http://svn.reactos.org/svn/reactos?rev=48789&view=rev
Log:
- Apply patch from wine-patches
(
http://www.winehq.org/pipermail/wine-patches/2010-September/093369.html):
Implement support for getting class data GCLP_HBRBACKGROUND on other process window.
[1/3]
Modified:
branches/arwinss/reactos/subsystems/win32/win32k/wine/class.c
Modified: branches/arwinss/reactos/subsystems/win32/win32k/wine/class.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win3…
==============================================================================
--- branches/arwinss/reactos/subsystems/win32/win32k/wine/class.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/subsystems/win32/win32k/wine/class.c [iso-8859-1] Fri Sep 17
18:37:43 2010
@@ -38,6 +38,7 @@
int local; /* local class? */
atom_t atom; /* class atom */
mod_handle_t instance; /* module instance */
+ user_handle_t background; /* background brush handle */
unsigned int style; /* class style */
int win_extra; /* number of window extra bytes */
client_ptr_t client_ptr; /* pointer to class in client address space */
@@ -178,6 +179,7 @@
}
class->atom = atom;
class->instance = req->instance;
+ class->background = req->background;
class->style = req->style;
class->win_extra = req->win_extra;
class->client_ptr = req->client_ptr;
@@ -245,6 +247,7 @@
reply->old_extra = class->nb_extra_bytes;
reply->old_win_extra = class->win_extra;
reply->old_instance = class->instance;
+ reply->old_background= class->background;
if (req->flags & SET_CLASS_ATOM)
{
@@ -257,4 +260,5 @@
if (req->flags & SET_CLASS_INSTANCE) class->instance = req->instance;
if (req->flags & SET_CLASS_EXTRA) memcpy( class->extra_bytes +
req->extra_offset,
&req->extra_value,
req->extra_size );
-}
+ if (req->flags & SET_CLASS_BKGND) class->background = req->background;
+}