Commit Graph

766 Commits

Author SHA1 Message Date
Huw Davies e33f622bd1 Use the gasp table to check whether we should trigger antialiasing. 2005-09-12 11:11:30 +00:00
Alexandre Julliard f8ee161a1b Fixed some traces to use the right printf format and avoid typecasts. 2005-09-12 10:30:05 +00:00
Dmitry Timoshkov 7647cffbdf Add a test for ShowWindow(SW_SHOWMAXIMIZED) called for a not visible
overlapped window, which shows that WM_SHOWWINDOW is not sent in that
case and that it should activate a window and bring it to top.
2005-09-12 10:09:40 +00:00
Alexandre Julliard 20a1a203c6 Use a more portable scheme for storing the name of a critical
section.
2005-09-09 10:19:44 +00:00
Frank Richter a7b5f5ac3c Make AlphaBlend() respect the destination clipping region. 2005-08-27 09:20:53 +00:00
Pavel Roskin cbb4f7d595 Extend uRelax scale so that yres is relaxed before slant, not at the
same time.
2005-08-26 08:47:45 +00:00
Huw Davies 6a3175032d Use the correct rectangle for ETO_OPAQUE - spotted by James Hawkins. 2005-08-24 10:56:49 +00:00
Huw Davies 5a39abb278 Avoid using XRenderFindStandardFormat as older libraries don't have
it.
2005-08-23 18:14:30 +00:00
Huw Davies 3433676fd7 Move a bunch of common code from the drivers into gdi. 2005-08-23 09:38:58 +00:00
Saulius Krasuckas 187f7a4a4f Don't dereference a NULL visual pointer. 2005-08-22 09:22:19 +00:00
Todd Mokros 88ac4b9650 Fix a focus stealing bug introduced by the managed flag changes. 2005-08-22 09:14:21 +00:00
Mike McCormack e5efc5a657 gcc 4.0 warning fixes. 2005-08-16 16:02:45 +00:00
Frank Richter a6f081e0db Fix AlphaBlend() to extract the right part of the source DIB. 2005-08-15 14:46:31 +00:00
Mike McCormack 99aac8a665 gcc 4.0 warning fixes. 2005-08-15 10:47:23 +00:00
Frank Richter 5e82e0cb63 Invalidate DCEs when a window region is set. 2005-08-15 09:33:39 +00:00
Mike McCormack c29892b88f Fix some gcc 4.0 warnings. 2005-08-12 10:35:46 +00:00
Michael Kaufmann 0f2c2b8426 Fix for BI_BITFIELDS: The color masks are at the same position in all
the bitmap headers that support this flag (BITMAPINFO: The first color
mask is in bmiColors[0], that's the same position as bV4RedMask in
BITMAPV4HEADER).
2005-08-08 18:40:14 +00:00
Alexandre Julliard 4fa411fa07 Don't call WaitForMultipleObjectsEx if we are just polling for pending
X events.
2005-08-03 15:47:30 +00:00
Oliver Stieber d708acd979 Back out the previous stencil patch and slightly improve on the old
functionality.
2005-08-03 11:01:15 +00:00
Alexandre Julliard 2431a64419 There's no need to update the event mask in X11DRV_sync_window_style,
it never changes.
2005-07-27 15:22:58 +00:00
Dmitry Timoshkov a726387a07 Take into account CS_NOCLOSE window class style and SC_CLOSE system
menu item state while handling WM_X11DRV_DELETE_WINDOW request.
2005-07-25 11:08:43 +00:00
Stefan Huehner 3e05fe1e60 Fix missing-declarations warnings. 2005-07-24 17:10:38 +00:00
Oliver Stieber b9efc4d26c Allow running opengl and DirectX applications without stencil support,
an earlier patch assumed that stencil support was available, but it
isn't in all cases.
2005-07-22 09:05:04 +00:00
Alexandre Julliard 6655fed5a6 Don't set win gravity, the default should work fine. 2005-07-19 11:43:38 +00:00
Alexandre Julliard 2997fc51a4 Fixed a few prototypes in the USER driver. 2005-07-18 13:20:18 +00:00
Stefan Huehner aed3fb612d Fix some sign-compare warnings by choosing correct datatypes. 2005-07-15 16:34:04 +00:00
Stefan Huehner 9b65ffbb36 Add some consts to fix discard-qual warnings. 2005-07-15 16:33:38 +00:00
Alexandre Julliard e419cb8869 Moved initialization of the desktop window in the graphics driver to a
separate CreateDesktopWindow entry point instead of overloading
CreateWindow.
2005-07-07 20:33:29 +00:00
Alexandre Julliard af50ad67ad Moved most initializations out of the create_desktop function and into
process_attach.
2005-07-07 17:30:57 +00:00
Mike McCormack d7b9a23afd gcc 4.0 -Wpointer-sign fixes (Reg* functions). 2005-07-06 19:08:05 +00:00
Stefan Huehner 70c80fb430 Make functions static to fix -Wmissing-declarations warnings. 2005-07-06 15:53:04 +00:00
Oliver Stieber d760208a5a Make sure that the OpenGL visual created for a window has a stencil
buffer.
2005-07-05 10:58:41 +00:00
Lionel Ulmer a167fe2854 Add some resolutions to what Desktop mode supports. 2005-07-03 11:20:56 +00:00
Alexandre Julliard c7dbffca96 Set the class resource name to the name of the main binary (suggested
by Rasterman).
2005-07-01 16:16:00 +00:00
Alexandre Julliard 8ba32b3f9b Delay OpenGL and GDI initialization until they are needed. 2005-06-29 19:28:06 +00:00
Eric Pouech 809edabfbe Const correctness fixes. 2005-06-27 09:53:46 +00:00
Alexandre Julliard 35ba3e2752 Moved font settings to HKCU\Software\Wine\X11 Driver\Fonts. 2005-06-22 12:02:47 +00:00
Vitaliy Margolen fb99124f94 Deactivate active window in ShowWindow(,SW_HIDE). 2005-06-17 21:05:16 +00:00
Stefan Huehner 03cc8c4181 Remove some -Wstrict-prototypes warnings. 2005-06-17 10:11:37 +00:00
Alexandre Julliard f0fcaed630 Moved configuration keys to HKCU\Software\Wine\X11 Driver. 2005-06-16 16:14:46 +00:00
Alexandre Julliard acaa5c5eff Removed the check for the old Resolution option. 2005-06-14 18:13:09 +00:00
Alexandre Julliard cb538c0533 Merged palette option processing into the main configuration code. 2005-06-14 18:12:15 +00:00
Alexandre Julliard 1ba6e1cb16 Avoid repeatedly opening the configuration registry key. 2005-06-14 17:24:28 +00:00
Alexandre Julliard bb1dbb5ac9 Get rid of the PerfectGraphics option, that's not really useful. 2005-06-14 11:52:48 +00:00
Alexandre Julliard 2e4bca9db5 Added magic comments to all Wine-specific registry accesses to make
them easier to grep.
2005-06-13 18:56:00 +00:00
Glenn Wurster d11bdd5e1d Add declaration of X11DRV_GetDIBColorTable to avoid compile warning. 2005-06-12 10:41:39 +00:00
Glenn Wurster ca46c6a8ae Adds support for the DIBINDEX type of COLORREF. 2005-06-10 19:31:20 +00:00
Alexandre Julliard d286b8a660 Use standard TLS functions instead of a TEB internal field to access
per-thread data.
2005-06-01 11:08:39 +00:00
Dmitry Timoshkov 28dec19921 Fix Estonian keyboard layout to better match the X11 one. 2005-05-29 20:01:17 +00:00
Dmitry Timoshkov d5e1804c1b SetParent needs to clear 'managed' flag for former top level window. 2005-05-24 11:44:59 +00:00
Daniel Schepler 27792f6f16 Implement CDS_TEST flag in ChangeDisplaySettings. 2005-05-23 09:52:23 +00:00
Dmitry Timoshkov ac5b025103 Do not pass an invalid target buffer info to WideCharToMultiByte. 2005-05-12 09:56:35 +00:00
Raphael Junqueira 075f8cfe8f Fix X11DRV_ChoosePixelFormat to choose 24 bpp as 32 bpp for depth
buffers (needed as many X11 drivers only support 24bpp).
2005-05-10 08:26:08 +00:00
Rein Klazes ce8c9426eb Don't set the pen width to 1 in X11DRV_PolyLine. 2005-05-07 17:54:51 +00:00
Robert Lunnon 16a37e1eaf Avoid passing NULL buffer elements and status pointers to
XmbLookupString.
2005-05-07 12:18:24 +00:00
Alexandre Julliard c3116c5e61 Renamed ttydrv and x11drv to winetty.drv and winex11.drv respectively
to follow the namespace conventions and make it clear that they are
drivers and not dlls.
Moved the graphics driver configuration to HKLM\Software\Wine\Drivers.
2005-05-06 19:38:50 +00:00
Francois Gouget f5c9da6860 Assorted spelling fixes. 2005-05-06 15:44:31 +00:00
Francois Gouget 63b596d7ea Tweak the documentation to make winapi_check happy. 2005-05-06 14:33:02 +00:00
Raphael Junqueira 9e034b7fb8 - valid implementation of X11DRV_ChoosePixelFormat using GLX1.3 API
(ie. using real card caps and not ugly way using visuals array) to
  be compatible with opengl32 pixel formats (wgl*PixelFormat* APIs) as
  they need to be the same
- add more traces to xrandr
2005-04-28 18:29:12 +00:00
Ulrich Czekalla a800dfe52e SetParent should not remove menu from non-child windows. 2005-04-26 08:16:17 +00:00
Huw Davies cc255b0c8b If XShmAttach fails then reset shmid to -1 so that we don't try to use
it later.
2005-04-22 19:06:41 +00:00
Alexandre Julliard 333e49d78b Moved the UsePrimary config parameter to the x11drv section, renamed
as UsePrimarySelection.
2005-04-21 17:31:50 +00:00
Alexandre Julliard d1a36e1929 Avoid a compiler warning. 2005-04-20 18:45:28 +00:00
Dimitrie O. Paun 41c2482984 Use vectored exceptions to get rid of VIRTUAL_SetFaultHandler(). 2005-04-20 16:24:13 +00:00
Francois Gouget 3ef8c51c8a Tweak the API documentation to silence winapi_check warnings. 2005-04-20 15:18:42 +00:00
Richard Cohen 062c18dd24 Dither solid colours on monochrome bitmaps. 2005-04-20 12:52:46 +00:00
Eric Pouech e5da8e6260 Correctness for const pointer casts. 2005-04-18 09:51:03 +00:00
Rein Klazes 8062bbdeb8 In X11DRV_DIB_SetImageBits avoid BadMatch errors when calling
XGetSubImage.
2005-04-14 12:48:31 +00:00
Alexandre Julliard 036dcf2a2a Include Xmd.h in x11drv.h with the proper defines to make it work, and
remove related hacks in various C files.
2005-04-14 12:48:11 +00:00
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
Alexandre Julliard 484ef02aab Added support for iso8859-16 charset. 2005-03-08 16:46:54 +00:00
Alexandre Julliard f210c0bbad Added a missing prototype. 2005-03-07 20:08:50 +00:00
Ulrich Czekalla 5067909587 Create a thread-specific selection window to make sure we receive the
selection events in the correct thread.
2005-03-07 19:31:46 +00:00
Dmitry Timoshkov ee5be57935 Avoid unnecessary window locking in X11DRV_DestroyWindow. 2005-03-07 17:13:53 +00:00
Alexandre Julliard d0ee9f9309 Avoid spaces before preprocessor directives, that's not portable. 2005-03-02 12:23:20 +00:00
Alexandre Julliard 2fd19dfb98 Use a dispatch table to handle X client messages. 2005-03-01 11:52:02 +00:00
Ulrich Czekalla 18fe91d8d2 If unexpected condition occurs just report an error. 2005-03-01 10:43:58 +00:00
Huw Davies 4cf9dd3d47 If the dibsection is based on a file-mapping object, then make sure
that the section is in sync when the dibsection is deleted.
2005-03-01 10:43:19 +00:00
Alexandre Julliard 94846a39dc Use a table of handlers to dispatch X events and get rid of the
special casing for DGA and tablet events.
Unify the declarations of all the event handlers.
2005-02-26 17:49:38 +00:00
Alexandre Julliard 0778a45da2 Moved clipboard event handling functions and some private data
structures to clipboard.c.
2005-02-25 21:01:15 +00:00
Alexandre Julliard 983a8b5888 Revert SC_CLOSE change, this is causing deadlocks. 2005-02-23 21:47:32 +00:00
Jason Edmeades ddd1c1d0a1 Take into account additional requested spacing on break characters. 2005-02-23 12:42:17 +00:00
Alexandre Julliard 548c973457 Allow the client rectangle to be of arbitrary size and dimensions,
regardless of the window rectangle.
2005-02-22 19:41:43 +00:00
Ulrich Czekalla 43b5576998 Duplicate Windows behaviour and use SendMessage for the SC_CLOSE
system command instead of PostMessage.
2005-02-18 20:00:57 +00:00
Lauri Tulmin 373dc8909f Make minimized windows stay minimized. 2005-02-16 16:08:18 +00:00
Dmitry Timoshkov 39f960bdfa - Fix prototypes of GetClassLongA/W, GetClassLongPtrA/W and
SetClassLongA/W according to SDK definitions.
- Add prototypes for SetClassLongPtrA/W, protect some GWL_ and GCL_
  constants from using in Wine or in _WIN64 mode.
- Fix all places in Wine affected by the above changes.
2005-02-15 21:51:06 +00:00
Alexandre Julliard e551555d4e Make the win data pointer only available in the thread that owns the
window.
2005-02-09 14:01:40 +00:00
Dmitry Timoshkov 641be42a88 Add support for Turkish (tr) X11 keyboard layout. 2005-02-09 13:25:59 +00:00
Dmitry Timoshkov 6dba0a7718 Add support for winevent hooks. 2005-02-03 16:40:20 +00:00
Alexandre Julliard ae661da49c Properly compute the client area valid rects and pass them to the
server in set_window_pos to avoid invalidating areas that remain
valid.
2005-02-03 13:40:12 +00:00
Alexandre Julliard d7726c3a73 Store the "managed" flag as a window property instead of the
Wine-specific WS_EX_MANAGED style bit.
2005-02-01 18:53:59 +00:00
Alexandre Julliard f777d70a63 Only create an X window for top-level windows, not for child windows.
Get rid of the X client window too, it's no longer needed.
2005-01-31 16:34:07 +00:00
Alexandre Julliard d56ccaa7e1 Use an X context to associated the x11drv private window data to a
window handle instead of accessing the WND structure directly.
2005-01-28 17:25:50 +00:00
Oliver Stieber fe59db7ce3 Send a scancode through for the 5 key when numlock isn't on. 2005-01-28 11:27:00 +00:00
Glenn Wurster bcaca0a5f7 Disable antialiasing of fonts while working in a palette. 2005-01-26 19:43:42 +00:00
Rein Klazes 3ee5db6e17 Make ShowWindow(...,SW_SHOWNA) also work on already visible windows
with some conformance tests.
2005-01-25 11:21:20 +00:00
Glenn Wurster eae60bedd5 Disable antialiasing if the font dictates it. 2005-01-24 19:32:54 +00:00
Glenn Wurster c3f8226ed1 Split caching of antialiased and non-antialiased glyphs. 2005-01-24 19:08:02 +00:00
Dmitry Timoshkov 50eb546e4f Put Brazilian ABNT2 keyboard layouts in line with appropriate virtual
keyboard maps.
2005-01-24 18:58:00 +00:00
Robert North 6d21f3e533 Bring wintab in line with Jeremy's X11 event timing patches again. 2005-01-24 13:38:32 +00:00
Robert North 589c9569b1 Add the rule that inverted cursor has -ve altitude, matching behaviour
on Windows wacom tablets.
2005-01-24 13:37:48 +00:00