Commit Graph

50 Commits

Author SHA1 Message Date
Jacek Caban 10f38c0600 winex11: Move user driver to unixlib.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-06 19:18:22 +02:00
Jacek Caban ef8e4b7e3e winex11: Use libc for driver memory allocation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 20:34:55 +02:00
Jacek Caban 6db4613be9 winex11: Use pthread for palette locking.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-18 20:59:04 +02:00
Jacek Caban 37f31840b9 winex11: Directly use win32u for GDI functions in palette.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-12 21:39:42 +02:00
Alexandre Julliard 458e0ad513 winex11: Use the default color table for window surfaces on 8bpp displays.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48088
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-19 18:38:22 +01:00
Alex Henrie 1ff4a8fa41 winex11: Fix off-by-one error in color value scaling.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-22 09:09:15 +01:00
Zhiyi Zhang 99d047724e winex11.drv: Introduce is_virtual_desktop().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-05 17:30:48 +01:00
Zhiyi Zhang 6dbb153ede winex11.drv: Call XFlush() right after XUngrabServer().
XGrabServer() stops the processing of other display connections
until a XUngrabServer() call is actually processed by the X server.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-31 19:30:00 +01:00
Alexandre Julliard 4a902de213 gdi32: Make GDI driver functions cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-06 21:47:58 +02:00
Alex Henrie e5d4d91871 winex11: Make color cubes as big as possible.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-02 23:02:22 +09:00
Alex Henrie fb90e1b673 winex11: Initialize the length of each side of the color cube to 1.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-02 23:02:21 +09:00
Anton Baskanov 18dc14ed9a gdi32: Return default palette entries from GetSystemPaletteEntries for non-palette-based devices.
Signed-off-by: Anton Baskanov <baskanov@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 19:19:09 +09:00
Francois Gouget b1ac59b9e9 winex11.drv: Make X11DRV_PALETTE_ComputeColorShifts() static. 2015-01-05 20:17:08 +01:00
Gerald Pfeifer fe79e62a9f winex11.drv: Remove colour_is_brighter. 2014-08-21 12:23:45 +02:00
André Hentschel a35b41acaa winex11: Use boolean return values in boolean function. 2014-01-30 14:51:38 +01:00
Andrew Talbot 9acc966688 winex11.drv: Indentation fix. 2012-12-24 13:30:11 +01:00
Andrew Talbot 00360e7c03 winex11.drv: Remove unused variable. 2012-11-29 00:15:48 +01:00
Huw Davies 2232fef56c winex11: Add a few 'fall through' comments. 2012-11-27 17:00:16 +01:00
Alexandre Julliard 014ec638d6 winex11: Remove some unused palette code. 2012-09-26 14:40:42 +02:00
Alexandre Julliard 3c57f11374 winex11: Create a default colormap along with the default visual info. 2012-09-26 14:40:40 +02:00
Alexandre Julliard 988f2fde86 winex11: Store the full visual info for the default visual. 2012-09-26 14:40:39 +02:00
Alexandre Julliard f9a383323f winex11: Remove unnecessary cleanups on process exit. 2012-08-15 14:24:20 +02:00
Alexandre Julliard 6f6217e9a4 winex11: Remove remaining X11 locking around graphics calls. 2012-08-14 15:13:21 +02:00
Alexandre Julliard 6bfcb347bf winex11: Remove X11 locking around simple X calls. 2012-08-14 15:13:08 +02:00
Alexandre Julliard c123c2f87a winex11: Fix support for PALETTEINDEX mapping and get rid of DIBINDEX support. 2012-01-10 11:56:24 +01:00
Francois Gouget 06646b7aa2 winex11: Delete the palette and xrender static critical sections when unloading the dll. 2011-11-17 11:38:10 +01:00
Alexandre Julliard c7a8ff26d3 gdi32: Graphics driver functions no longer need to be CDECL. 2011-07-13 14:56:12 +02:00
Alexandre Julliard 00647af50b winex11: Use the HDC from the gdi_physdev structure. 2011-07-08 16:03:59 +02:00
Alexandre Julliard 6c951b7d0d winex11: Pass a generic PHYSDEV to all graphics entry points. 2011-07-08 15:55:11 +02:00
Vladimir Panteleev d7d5fb0abf winex11: Add X11DRV_PALETTE_GetColor function to resolve any COLORREF to an RGB. 2010-11-08 13:30:20 +01:00
Roderick Colenbrander 3afa657636 winex11: Fix palette conversion bug.
The LookupPixel code assumed we want to convert pixels to the format
corresponding the default color shifts.
2010-02-16 11:32:44 +01:00
Marcus Meissner 6fb5e61afb winex11: Remove more superflous NULL checks (Coverity). 2010-01-08 10:13:18 +01:00
Marcus Meissner 065fa22adc winex11.drv: physDev cannot be NULL (Coverity). 2010-01-07 19:41:34 +01:00
Roderick Colenbrander 2d1f55cce2 winex11: Fix a null pointer bug in ToLogical in case of 8-bit. Move the code to the place where the shifts are needed. 2009-09-10 15:32:55 +02:00
Roderick Colenbrander 4ef7bd6943 winex11: Add helper function for calculating ColorShifts. 2009-09-09 16:25:24 +02:00
Roderick Colenbrander 5db05dfea9 winex11: Use ColorShifts data in X11DRV_PALETTE_ToLogical. 2009-09-02 16:09:07 +02:00
Roderick Colenbrander 5fc017c497 winex11: Use ColorShifts from physDev in X11DRV_PALETTE_ToPhysical. 2009-09-02 16:08:36 +02:00
Roderick Colenbrander 3ad349f316 winex11: Prepare X11DRV_PALETTE_ToPhysical/_ToLogical for a new ColorShift structure. 2009-09-02 16:07:41 +02:00
Roderick Colenbrander 3878b4810e winex11: Introduce a new function for looking up the physical color of a pixel for use with colormap generation-like functions.
This prepares to a rewrite of X11DRV_PALETTE_ToPhysical which requires
the physDev for retrieving the color shifts.
2009-09-02 16:07:11 +02:00
James Hawkins c29c740de0 janitorial: Remove links to any microsoft site. 2008-03-01 12:17:10 +01:00
Lars-Ake Fredlund c4041ae815 winex11: Don't create a mapping if X11DRV_PALETTE_VIRTUAL is set. 2008-02-07 11:59:53 +01:00
Alexandre Julliard 608b2a94ec winex11: Add a critical section for the palette global variables instead of relying on the GDI lock. 2008-02-05 21:57:23 +01:00
Andrew Talbot 080635bdeb winex11.drv: Exclude unused headers. 2007-05-29 12:10:21 +02:00
Alexandre Julliard 5e7afb8c3b winex11.drv: Store the palette mapping in an X context instead of the GDI object. 2006-11-17 14:38:43 +01:00
Alexandre Julliard 719b7068a9 winex11.drv: Abstract accesses to the palette color mapping. 2006-11-17 14:36:34 +01:00
Alexandre Julliard 385ceeb8bc winex11.drv: Avoid some direct accesses to the PALETTEOBJ structure. 2006-11-17 14:34:56 +01:00
Alexandre Julliard ed4f22ab5f gdi32: Moved the system palette flags to winex11.drv. 2006-11-17 14:34:44 +01:00
Alexandre Julliard 3cb51cd3c4 winex11.drv: Get rid of the DIB color table now that it's stored in gdi32. 2006-11-08 19:57:37 +01:00
Vitaliy Margolen 6069d0d596 winex11drv: Win64 printf format warning fixes. 2006-10-09 15:23:33 +02:00
Alexandre Julliard bdb4fab7a7 x11drv: Renamed the x11drv directory to winex11.drv. 2006-06-16 09:57:50 +02:00