Commit Graph

597 Commits

Author SHA1 Message Date
Marcus Meissner 1b8f8f44a1 Terminate XCreateIC() argument list with NULL instead of just 0. 2005-04-13 15:23:29 +00:00
Alexandre Julliard 042614751c Use an X context to associate the phys bitmap data to a bitmap handle
instead of directly accessing the bitmap structure.
2005-04-13 15:23:15 +00:00
Huw Davies 5673b00adc RegisterClipboardFormat takes a unicode string now. 2005-04-13 15:18:32 +00:00
Dimitrie O. Paun e3e5cf19a8 Remove the need for the non-standard (Close|Delete)MetaFile16(). 2005-04-13 15:16:40 +00:00
Alexandre Julliard 9591466a60 Moved the driver-independent part of CreateDIBSection into GDI. 2005-04-13 14:45:27 +00:00
Alexandre Julliard 66add27b21 Store DIB section information directly in the phys bitmap structure
and get rid of the X11DRV_DIBSECTION structure.
Get rid of the unused AuxMod DIB state.
2005-04-13 11:23:24 +00:00
Alexandre Julliard 0e49a5b0b9 Store a pointer to the currently selected phys bitmap in the device
structure. Create a phys bitmap for the default stock bitmap too.
2005-04-12 11:59:48 +00:00
Alexandre Julliard b16e32a364 Store the bitmap handle in the phys bitmap structure, and avoid a few
more GDI_GetObjPtr calls.
2005-04-12 10:17:55 +00:00
Alexandre Julliard 541e5b3751 Store the pixmap depth and the DIBSECTION pointer in the phys bitmap
structure. Avoid a few GDI_GetObjPtr calls.
2005-04-11 18:54:30 +00:00
Rein Klazes bf559d544b Fix X11DRV_DIB_SetImageBits_RLE(4|8) when an non-zero x-offset
(argument left) is specified.
2005-04-11 14:25:26 +00:00
Glenn Wurster f3c99197ac Fix array index crash in buidling GDI palette from logical palette. 2005-04-11 12:57:10 +00:00
Alexandre Julliard 0a63a72f81 Introduced an X_PHYSBITMAP structure to allow storing more x11drv
information about a bitmap than just the pixmap id.
2005-03-31 19:13:03 +00:00
Alexandre Julliard 313554f01f Avoid directly accessing the BITMAPOBJ structure. 2005-03-31 19:05:48 +00:00
Alexandre Julliard 0b1d1d9752 Removed the no longer needed X11DRV_get_client_area_offset function. 2005-03-31 15:44:20 +00:00
Alexandre Julliard bc75f2f6c9 Return the coordinates information needed to setup the DC parameters
in the get_visible_region request instead of requiring the client to
compute it again.
2005-03-31 15:36:57 +00:00
Aric Cyr ca1dd053cf Japanese 106 Keyboard fix. 2005-03-31 10:05:48 +00:00
Alexandre Julliard eea706948a The update region passed in WM_NCPAINT and the clipping region passed
to GetDCEx have to be in screen coordinates.
2005-03-30 17:11:46 +00:00
Francois Gouget 6b10c324c5 Assorted spelling fixes. 2005-03-30 17:08:31 +00:00
Alexandre Julliard d99df2b757 Only reset the clip region in GetDC() if a new region is specified.
Don't release the clip region for window DCs in ReleaseDC(), except
when called from EndPaint().
Added a bunch of tests.
2005-03-30 10:28:58 +00:00
Alexandre Julliard 026a4b0d0d Only restore the DC attributes on the next GetDC, and add support for
the DCX_NORESETATTRS flag.
Get rid of the DCE flags, simplify the code a bit.
Add some test cases.
2005-03-29 18:59:02 +00:00
Dmitry Timoshkov d6b063e380 Handle control characters in VkKeyScanEx similar to what Windows
does.
2005-03-29 11:30:13 +00:00
Alexandre Julliard 65e4d34599 Merged X11DRV_BITMAP_CreateBitmapHeaderFromPixmap into
X11DRV_DIB_CreateDIBFromPixmap and simplified the code a bit.
2005-03-28 10:06:06 +00:00
Alexandre Julliard 5fd13261a0 Added X11DRV_get_pixmap and X11DRV_set_pixmap functions to avoid
direct accesses to the physBitmap field of the bitmap structure.
2005-03-27 18:30:51 +00:00
Alexandre Julliard 3a522f3d71 Store the handle to the stock bitmap when the first DC is created to
avoid exporting the DEFAULT_BITMAP define.
2005-03-27 18:19:59 +00:00
Alexandre Julliard fe661fa752 Store the DCE pointer in the DC physDev structure using an x11drv GDI
escape.
2005-03-27 17:58:41 +00:00
Rein Klazes a807c5efce ScrollDC and X11DRV_SCROLLDC should scroll only pixels coming from
within the visible region, clipped to the clipping region if that
exists. Add the destination of pixels coming from the outside of this
region to the update region. With tests that depend on this.
2005-03-25 17:11:04 +00:00
Alexandre Julliard 2fb7c8754a Moved DCE support to the X11 driver. 2005-03-25 16:47:04 +00:00
Alexandre Julliard 4d32a475a8 Replace the link_window request by a set_parent request since that is
all link_window is used for at this point.
Get rid of the WIN_LinkWindow/UnlinkWindow functions.
2005-03-25 10:38:56 +00:00
Alexandre Julliard e802bcb2e2 Try a TrueColor visual if Xrender fails with a DirectColor one. 2005-03-24 21:04:10 +00:00
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Alexandre Julliard 23d9ac25b2 Avoid calling WIN_ListChildren from the graphics drivers. 2005-03-24 20:41:27 +00:00
Kevin Koltzau f4767f1424 Added full support for xbuttons (side mouse buttons). 2005-03-24 19:15:41 +00:00
Alexandre Julliard 039603c77d Don't maintain a client-side WND structure for the desktop window.
Made WIN_GetPtr return WND_DESKTOP in that case.
2005-03-24 15:18:50 +00:00
Ron Jensen 888fb43ba2 Avoid bad visual errors in thread_selection_wnd(). 2005-03-23 13:08:35 +00:00
Alexandre Julliard 3b73e1277f Get rid of the remaining WIN_FindWndPtr calls. 2005-03-23 12:00:51 +00:00
Robert Shearman caec6026e7 - Window styles passed to CreateWindowEx must the same as passed in
CREATESTRUCT for WM_CREATE/WM_NCCREATE.
- Fix cases where WS_EX_WINDOWEDGE style is applied.
- Tests for the above.
2005-03-23 10:26:15 +00:00
Hans Leidekker ac147fefc7 Fix some -Wsign-compare and -Wuninitialized warnings. 2005-03-22 21:17:34 +00:00
Dmitry Timoshkov 10a7c25ac7 Add support for Serbian cyrillic X11 keyboard layout. 2005-03-22 16:42:47 +00:00
Alexandre Julliard 5054c79880 Try to always keep the server window Z-order in sync with the X11 one
using a heuristic based on mouse and expose events.
2005-03-21 12:37:00 +00:00
Alexandre Julliard 44e6d5a48d Don't try to resync Z-order on ConfigureNotify events, this cannot
work right anyway.
2005-03-21 10:57:21 +00:00
Glenn Wurster a21255d102 Remove break statements missed in last patch. 2005-03-21 10:53:42 +00:00
Alexandre Julliard f75609087a Make the server know about the visible area of a window, which is the
window rect minus the caption and borders when they are handled by the
window manager.
2005-03-17 19:10:41 +00:00
Alexandre Julliard 4e47afb36f Compute the top clipping window directly on the server side. 2005-03-17 14:02:06 +00:00
Alexandre Julliard 9ff2eea0e1 Don't force injected hardware messages to be queued in the current
thread.
2005-03-16 20:10:35 +00:00
Peter Berg Larsen 4293b614c4 Assorted memleak fixes. Found on Michael Stefaniuc smatch list. 2005-03-14 10:03:39 +00:00
Raphael Junqueira d574e9a2db - XListInputDevices spec say that device list should be freed using
XFreeDeviceList
- better robustness on X11DRV_AttachEventQueueToTablet
2005-03-10 11:48:28 +00:00
Alexandre Julliard 8382bf015e Added WM_X11DRV_DELETE_WINDOW message to handle close requests so that
we can send the WM_SYSCOMMAND with SendMessage instead of PostMessage.
Added missing NONAMELESSUNION define.
2005-03-09 18:46:13 +00:00
Alexandre Julliard aef19abc82 Moved SendInput and related functions to the USER driver to avoid a
number of dll separation hacks.
2005-03-09 16:45:23 +00:00
Alexandre Julliard 5beccd01ac Take into account the event mask passed to MsgWaitForMultipleObjectsEx
to allow processing only a subset of the available X events.
2005-03-08 19:20:14 +00:00
Maxime Bellengé ca6cb6b08b - Fix unmovable windows if the window style is set to WS_POPUP |
WS_VISIBLE and WS_EX_APPWINDOW.
- Fix metacity displaying decorations where it should not.
2005-03-08 18:58:25 +00:00