Commit Graph

46 Commits

Author SHA1 Message Date
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
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
Alexandre Julliard
1fba2ee22d winex11: Bytes per line is signed so make it an int instead of a DWORD. 2009-08-29 21:43:51 +02:00
Henri Verbeet
85fe381daf winex11.drv: Fallback to X11DRV_SHM_NONE in X11DRV_DIB_DoCopyDIBSection() if dest doesn't match the pixmap.
Falling back to X11DRV_SHM_IMAGE doesn't work, the image's data isn't in
shared memory if the pixmap was created as Shm pixmap.
2009-08-07 12:11:55 +02:00
Henri Verbeet
9fd29492c1 winex11.drv: Add support for XShm pixmaps.
Most of this is "Copyright 2004 Huw Davies for CodeWeavers", I just did a
little bit of integration.
2009-08-06 17:26:31 +02:00
Roderick Colenbrander
618b410aa8 winex11: Add a function for retrieving the bitmap GC. 2009-07-16 11:19:34 +02:00
Eric Pouech
21c3e79e52 winex11: Correctly pad 1 bpp DDB's lines with 0 values. 2009-03-02 15:02:43 +01:00
Michael Stefaniuc
a2187cad1f winex11.drv: Remove superfluous pointer casts. 2009-01-19 13:36:25 +01:00
Maarten Lankhorst
131d0a79a1 gdi32/winex11.drv: Change all gdi/opengl operations to use CDECL calling convention. 2008-12-23 13:02:33 +01:00
Andrew Talbot
dd8e833db2 winex11.drv: Sign-compare warnings fix. 2008-12-05 12:03:27 +01:00
Huw Davies
165b21dd2d winex11.drv: Fix SetDIBits optimization to work with top-down dib sections. 2008-09-10 10:39:28 +02:00
Alexandre Julliard
90ef43ab26 winex11: Allocate image data from the process heap where possible. 2008-08-29 13:34:11 +02:00
Michael Karcher
3843d5beee winex11: Fix GetDIBits with monochrome pixmaps. 2008-08-18 17:15:56 +02:00
Lei Zhang
e031ef4807 winex11: X11DRV_DIB_[GS]etImageBits should return 0 on failure. 2008-07-21 14:36:48 +02:00
Mathias Kosch
f296f27e96 winex11: Fix typo in X11DRV_SetDIBits optimization. 2008-07-18 11:32:28 +02:00
Michael Karcher
3d95f5e1c6 winex11: Made local constant static. 2008-07-03 11:50:51 +02:00
Michael Karcher
8da833494d winex11: Fix GetDIBits of 1 bit DDBs.
1 bpp DDBs seem to always carry an implicit palette of black and white,
regardless of what the DC says. Based on a patch from Eric Pouech.
2008-07-01 14:59:14 +02:00
Andrew Talbot
5156219a1c winex11.drv: Remove unused variables. 2008-05-02 16:08:15 +02:00
Huw Davies
80157c2fa6 winex11.drv: Rename X11DRV_DIB_BitmapInfoSize to bitmap_info_size and fix to take into account bit field masks. 2008-05-02 16:07:50 +02:00
Alexandre Julliard
617e5162a2 winex11: Don't free the pixmap in X11DRV_DIB_CreateDIBFromPixmap since we don't own it. 2008-05-01 18:11:26 +02:00
Marcus Meissner
0926fff545 winex11: Move code behind error return. 2008-04-17 11:40:47 +02:00
Alexandre Julliard
653c4140b4 winex11: Added an exception handler to catch bad pointers in X11DRV_SetImageBits. 2008-03-10 19:12:53 +01:00
Rob Shearman
428ada3c8a winex11.drv: Optimise getting the bits of a DIB after calling SetDIBits.
Sync the application's bits in SetDIBits if the input bits are in 
exactly the same format and the size of the image is small enough not to 
cause a performance hit (in case the application doesn't get ever access 
the bits directly).
2008-02-22 11:52:08 +01:00
Alexandre Julliard
0d30daa8e4 winex11: Abstract the depth->bpp conversion and use it in X11DRV_DIB_CreateDIBFromPixmap. 2008-02-04 14:36:18 +01:00
Andrew Talbot
68feed7e77 winex11.drv: Remove unneeded casts. 2008-02-04 14:20:45 +01:00
Alexandre Julliard
a7cdf6e110 winex11: Catch DIB memory accesses that touch the last page beyond the DIB bits end. 2008-01-24 10:21:17 +01:00
Austin English
0e4adae973 Spelling fixes. 2008-01-07 13:41:01 +01:00
Francois Gouget
f288ed99b0 winex11: Add C alternatives to the assembly bits in X11DRV_DIB_SetImageBits_8(). 2007-11-09 13:07:25 +01:00
Francois Gouget
c4b1195c0c Assorted spelling fixes. 2007-10-23 18:20:27 +02:00
Francois Gouget
602ab961c4 winex11: Remove some unneeded casts. 2007-10-23 18:19:31 +02:00
Francois Gouget
0d24ebfcbb winex11.drv: Remove the coloruse == -1 special case. Add X11DRV_DIB_GetColorCount() for computing a bitmap's number of colors. 2007-10-19 14:43:39 +02:00
Francois Gouget
860cf251f6 winex11.drv: The 'lossy' parameter is always false so remove it. 2007-10-15 12:04:54 +02:00
Francois Gouget
fda899a778 Assorted spelling fixes. 2007-10-11 19:52:49 +02:00
Francois Gouget
e396288ec5 winex11.drv: Remove an obsolete FIXME comment. 2007-10-11 19:52:25 +02:00
Alexandre Julliard
809af590a1 winex11.drv: Don't call GDI functions while holding the X11 lock. 2007-09-27 18:02:26 +02:00
Peter Dons Tychsen
cf7cfa85eb winex11: Fix X11DRV_DIB_GetImageBits() when target bitmaps are larger than fetched. 2007-07-04 12:07:01 +02:00
Andrew Talbot
a33f71a32d winex11.drv: Replace inline static with static inline. 2007-03-17 20:04:54 +01:00
Jan Zerebecki
2db1e421f1 winex11.drv: Add DebugInfo to critical sections. 2007-03-12 13:40:28 +01:00
Ulrich Czekalla
4bdf4345b8 winex11.drv: Store window and drawable rects in X11DRV_PDEVICE. 2006-12-12 13:45:10 +01:00
Alexandre Julliard
d5ee62342a winex11.drv: Don't use the specified DC when mapping RGB colors for a DIB.
The DC palette only matters for DIB_PAL_COLORS.
2006-11-27 17:04:19 +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
Francois Gouget
58162f87fd Assorted spelling fixes. 2006-10-13 11:55:04 +02:00
Vitaliy Margolen
6069d0d596 winex11drv: Win64 printf format warning fixes. 2006-10-09 15:23:33 +02:00
Alexandre Julliard
a27d0aa4e9 include: Added definitions for the fault address exception information. 2006-09-20 11:27:53 +02:00
Alexandre Julliard
bdb4fab7a7 x11drv: Renamed the x11drv directory to winex11.drv. 2006-06-16 09:57:50 +02:00