Mike McCormack
99aac8a665
gcc 4.0 warning fixes.
2005-08-15 10:47:23 +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
Stefan Huehner
3e05fe1e60
Fix missing-declarations warnings.
2005-07-24 17:10:38 +00:00
Eric Pouech
809edabfbe
Const correctness fixes.
2005-06-27 09:53:46 +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
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
Rein Klazes
8062bbdeb8
In X11DRV_DIB_SetImageBits avoid BadMatch errors when calling
...
XGetSubImage.
2005-04-14 12:48:31 +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
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
Jakob Eriksson
9ed61de9a2
Get rid of HeapAlloc casts.
2005-03-24 21:01:35 +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
Michael Stefaniuc
5ad7d858e0
Do not check for non NULL pointer before HeapFree'ing it. It's
...
redundant.
2004-12-23 17:06:43 +00:00
Eric Pouech
0a258964c2
Const correctness fixes.
2004-11-30 21:38:57 +00:00
Robert Shearman
83f7b39dab
When changing from DIB_Status_GdiMod to DIB_Status_GdiMod, we have to
...
set the previous status to DIB_Status_GdiMod, otherwise a
non-committing unlock could incorrectly revert the DIB to another
state, rather than the correct DIB_Status_GdiMod.
2004-11-23 12:21:05 +00:00
Michael Kaufmann
0dd2910eba
- Extended support for BITMAPCOREINFO / BITMAPCOREHEADER structures.
...
- Always calculate the location of the color table.
- CreateCompatibleBitmap: Create a DIB section if necessary.
- Added some tests.
2004-11-02 05:23:49 +00:00
Michael Kaufmann
54be3001b4
- Add as many entries to the color map as specified by the DIB.
...
- Support bitmaps with a BITMAPV{4,5}HEADER.
2004-09-27 20:33:58 +00:00
Huw Davies
530e789d7e
It's important to keep the original dib colour table and not just the
...
colour mapping associated with a dib section - it's this table that
GetDIBColorTable should retrieve.
Added some GetDIBColorTable tests.
2004-09-16 19:10:14 +00:00
Huw Davies
ce34568351
We want all 1bpp dibsections to have a monochrome bitmap and
...
everything else to be at the screen depth.
2004-09-10 19:35:56 +00:00
Huw Davies
13f52454c4
Sync with dibsection in SetDIBitsToDevice.
2004-08-13 19:47:29 +00:00
Huw Davies
dd8922f20b
Repect the width of both the src and dst when calculating how many
...
pixels to copy in a dib <-> bmp operation.
2004-08-12 20:02:39 +00:00
Hans Leidekker
5f6f63a49d
Fix signed/unsigned comparison warnings.
2004-08-11 23:45:34 +00:00
Huw Davies
210b54670c
We don't support GetDIBits with BI_RLE4/8, so for now return an
...
uncompressed bitmap if the bits buffer is large enough.
2004-03-30 20:39:09 +00:00
Huw Davies
caab4c6f39
Build the correct colour map when the mode is DIB_PAL_COLORS.
2004-03-27 01:37:09 +00:00
Dmitry Timoshkov
21fc3c8067
CreateDIBSection takes a const pointer to BITMAPINFO.
2004-03-12 19:46:12 +00:00
Jason Edmeades
af83e4cf91
Calculate the size of BI_BITFIELDS dib sections via the width and
...
height.
2004-03-07 03:47:55 +00:00
Alexandre Julliard
05df86a38f
Moved more GDI definitions to gdi_private.h.
...
Get rid of bitmap.h and palette.h.
2004-03-04 20:41:12 +00:00
Alexandre Julliard
37fda71e41
Get rid of the X11DRV_DC_Funcs hack.
...
Removed a couple of unused bitmap functions.
2004-03-04 06:13:21 +00:00
Alexandre Julliard
50a783f734
Get rid of some direct accesses to the DC structure from outside GDI.
2004-01-20 22:04:00 +00:00
Alexandre Julliard
b89525fb06
Removed the bitsPerPixel field in the generic DC structure, and leave
...
it up to the graphics driver to define it if necessary.
2004-01-18 22:20:17 +00:00
Alexandre Julliard
53145d96f6
Moved some code around to avoid exporting DIB functions from gdi32.
2004-01-13 23:31:46 +00:00
Alexandre Julliard
c0faca0755
Avoid direct access to the palette structure.
2004-01-13 05:25:30 +00:00
Dimitrie O. Paun
2eaefbd1a4
Move content of global.h into the appropriate private headers.
2003-12-08 21:58:55 +00:00
Alexandre Julliard
4715f13209
Moved all the files in graphics/x11drv to dlls/x11drv.
2003-12-05 00:20:27 +00:00