Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
05df86a3
Commit
05df86a3
authored
Mar 04, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved more GDI definitions to gdi_private.h.
Get rid of bitmap.h and palette.h.
parent
7b48ddcb
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
151 additions
and
209 deletions
+151
-209
dib.c
dlls/ddraw/dsurface/dib.c
+4
-1
bitblt.c
dlls/gdi/enhmfdrv/bitblt.c
+0
-1
enhmetafiledrv.h
dlls/gdi/enhmfdrv/enhmetafiledrv.h
+1
-0
objects.c
dlls/gdi/enhmfdrv/objects.c
+1
-1
gdi_private.h
dlls/gdi/gdi_private.h
+107
-0
bitblt.c
dlls/gdi/mfdrv/bitblt.c
+0
-1
metafiledrv.h
dlls/gdi/mfdrv/metafiledrv.h
+1
-0
objects.c
dlls/gdi/mfdrv/objects.c
+5
-1
painting.c
dlls/gdi/painting.c
+0
-1
wing.c
dlls/gdi/wing.c
+3
-3
palette.c
dlls/ttydrv/palette.c
+1
-1
bitmap.c
dlls/x11drv/bitmap.c
+0
-1
brush.c
dlls/x11drv/brush.c
+1
-1
dib.c
dlls/x11drv/dib.c
+1
-1
palette.c
dlls/x11drv/palette.c
+0
-1
x11ddraw.c
dlls/x11drv/x11ddraw.c
+1
-1
bitmap.h
include/bitmap.h
+0
-52
gdi.h
include/gdi.h
+23
-92
palette.h
include/palette.h
+0
-42
bitmap.c
objects/bitmap.c
+0
-1
brush.c
objects/brush.c
+1
-1
dib.c
objects/dib.c
+0
-2
gdiobj.c
objects/gdiobj.c
+0
-2
metafile.c
objects/metafile.c
+1
-1
palette.c
objects/palette.c
+0
-1
No files found.
dlls/ddraw/dsurface/dib.c
View file @
05df86a3
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#define NONAMELESSUNION
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#define NONAMELESSSTRUCT
#include "winerror.h"
#include "winerror.h"
#include "bitmap.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "ddraw_private.h"
#include "ddraw_private.h"
#include "dsurface/main.h"
#include "dsurface/main.h"
...
@@ -36,6 +35,10 @@
...
@@ -36,6 +35,10 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ddraw
);
WINE_DEFAULT_DEBUG_CHANNEL
(
ddraw
);
/* FIXME */
extern
HBITMAP
DIB_CreateDIBSection
(
HDC
hdc
,
BITMAPINFO
*
bmi
,
UINT
usage
,
LPVOID
*
bits
,
HANDLE
section
,
DWORD
offset
,
DWORD
ovr_pitch
);
static
ICOM_VTABLE
(
IDirectDrawSurface7
)
DIB_IDirectDrawSurface7_VTable
;
static
ICOM_VTABLE
(
IDirectDrawSurface7
)
DIB_IDirectDrawSurface7_VTable
;
/* Return the width of a DIB bitmap in bytes. DIB bitmap data is 32-bit aligned. */
/* Return the width of a DIB bitmap in bytes. DIB bitmap data is 32-bit aligned. */
...
...
dlls/gdi/enhmfdrv/bitblt.c
View file @
05df86a3
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include "wingdi.h"
#include "wingdi.h"
#include "gdi.h"
#include "gdi.h"
#include "enhmetafiledrv.h"
#include "enhmetafiledrv.h"
#include "bitmap.h"
#include "wine/debug.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
enhmetafile
);
WINE_DEFAULT_DEBUG_CHANNEL
(
enhmetafile
);
...
...
dlls/gdi/enhmfdrv/enhmetafiledrv.h
View file @
05df86a3
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include "winbase.h"
#include "winbase.h"
#include "wingdi.h"
#include "wingdi.h"
#include "gdi.h"
#include "gdi.h"
#include "gdi_private.h"
/* Enhanced Metafile driver physical DC */
/* Enhanced Metafile driver physical DC */
...
...
dlls/gdi/enhmfdrv/objects.c
View file @
05df86a3
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include "
bitmap
.h"
#include "
gdi
.h"
#include "enhmfdrv/enhmetafiledrv.h"
#include "enhmfdrv/enhmetafiledrv.h"
#include "gdi_private.h"
#include "gdi_private.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
dlls/gdi/gdi_private.h
View file @
05df86a3
...
@@ -46,6 +46,8 @@ struct hdc_list
...
@@ -46,6 +46,8 @@ struct hdc_list
/* Device functions for the Wine driver interface */
/* Device functions for the Wine driver interface */
typedef
struct
{
int
opaque
;
}
*
PHYSDEV
;
/* PHYSDEV is an opaque pointer */
typedef
struct
tagDC_FUNCS
typedef
struct
tagDC_FUNCS
{
{
INT
(
*
pAbortDoc
)(
PHYSDEV
);
INT
(
*
pAbortDoc
)(
PHYSDEV
);
...
@@ -170,6 +172,92 @@ typedef struct tagDC_FUNCS
...
@@ -170,6 +172,92 @@ typedef struct tagDC_FUNCS
BOOL
(
*
pWidenPath
)(
PHYSDEV
);
BOOL
(
*
pWidenPath
)(
PHYSDEV
);
}
DC_FUNCTIONS
;
}
DC_FUNCTIONS
;
/* It should not be necessary to access the contents of the GdiPath
* structure directly; if you find that the exported functions don't
* allow you to do what you want, then please place a new exported
* function that does this job in path.c.
*/
typedef
enum
tagGdiPathState
{
PATH_Null
,
PATH_Open
,
PATH_Closed
}
GdiPathState
;
typedef
struct
tagGdiPath
{
GdiPathState
state
;
POINT
*
pPoints
;
BYTE
*
pFlags
;
int
numEntriesUsed
,
numEntriesAllocated
;
BOOL
newStroke
;
}
GdiPath
;
typedef
struct
tagGdiFont
*
GdiFont
;
typedef
struct
tagDC
{
GDIOBJHDR
header
;
HDC
hSelf
;
/* Handle to this DC */
const
struct
tagDC_FUNCS
*
funcs
;
/* DC function table */
PHYSDEV
physDev
;
/* Physical device (driver-specific) */
INT
saveLevel
;
DWORD
dwHookData
;
FARPROC16
hookProc
;
/* the original SEGPTR ... */
DCHOOKPROC
hookThunk
;
/* ... and the thunk to call it */
INT
wndOrgX
;
/* Window origin */
INT
wndOrgY
;
INT
wndExtX
;
/* Window extent */
INT
wndExtY
;
INT
vportOrgX
;
/* Viewport origin */
INT
vportOrgY
;
INT
vportExtX
;
/* Viewport extent */
INT
vportExtY
;
int
flags
;
HRGN
hClipRgn
;
/* Clip region (may be 0) */
HRGN
hVisRgn
;
/* Visible region (must never be 0) */
HPEN
hPen
;
HBRUSH
hBrush
;
HFONT
hFont
;
HBITMAP
hBitmap
;
HANDLE
hDevice
;
HPALETTE
hPalette
;
GdiFont
gdiFont
;
GdiPath
path
;
WORD
ROPmode
;
WORD
polyFillMode
;
WORD
stretchBltMode
;
WORD
relAbsMode
;
WORD
backgroundMode
;
COLORREF
backgroundColor
;
COLORREF
textColor
;
COLORREF
dcBrushColor
;
COLORREF
dcPenColor
;
short
brushOrgX
;
short
brushOrgY
;
WORD
textAlign
;
/* Text alignment from SetTextAlign() */
INT
charExtra
;
/* Spacing from SetTextCharacterExtra() */
INT
breakExtra
;
/* breakTotalExtra / breakCount */
INT
breakRem
;
/* breakTotalExtra % breakCount */
INT
MapMode
;
INT
GraphicsMode
;
/* Graphics mode */
ABORTPROC
pAbortProc
;
/* AbortProc for Printing */
ABORTPROC16
pAbortProc16
;
INT
CursPosX
;
/* Current position */
INT
CursPosY
;
INT
ArcDirection
;
XFORM
xformWorld2Wnd
;
/* World-to-window transformation */
XFORM
xformWorld2Vport
;
/* World-to-viewport transformation */
XFORM
xformVport2World
;
/* Inverse of the above transformation */
BOOL
vport2WorldValid
;
/* Is xformVport2World valid? */
RECT
BoundsRect
;
/* Current bounding rect */
}
DC
;
/* DC flags */
/* DC flags */
#define DC_SAVED 0x0002
/* It is a saved DC */
#define DC_SAVED 0x0002
/* It is a saved DC */
#define DC_DIRTY 0x0004
/* hVisRgn has to be updated */
#define DC_DIRTY 0x0004
/* hVisRgn has to be updated */
...
@@ -180,6 +268,15 @@ typedef struct tagDC_FUNCS
...
@@ -180,6 +268,15 @@ typedef struct tagDC_FUNCS
Used by mfdrv for example. */
Used by mfdrv for example. */
#define GDI_NO_MORE_WORK 2
#define GDI_NO_MORE_WORK 2
/* Rounds a floating point number to integer. The world-to-viewport
* transformation process is done in floating point internally. This function
* is then used to round these coordinates to integer values.
*/
static
inline
INT
WINE_UNUSED
GDI_ROUND
(
FLOAT
val
)
{
return
(
int
)
floor
(
val
+
0
.
5
);
}
/* bidi.c */
/* bidi.c */
/* Wine_GCPW Flags */
/* Wine_GCPW Flags */
...
@@ -196,6 +293,10 @@ extern BOOL BIDI_Reorder( LPCWSTR lpString, INT uCount, DWORD dwFlags, DWORD dwW
...
@@ -196,6 +293,10 @@ extern BOOL BIDI_Reorder( LPCWSTR lpString, INT uCount, DWORD dwFlags, DWORD dwW
LPWSTR
lpOutString
,
INT
uCountOut
,
UINT
*
lpOrder
);
LPWSTR
lpOutString
,
INT
uCountOut
,
UINT
*
lpOrder
);
extern
BOOL
BidiAvail
;
extern
BOOL
BidiAvail
;
/* bitmap.c */
extern
HBITMAP
BITMAP_CopyBitmap
(
HBITMAP
hbitmap
);
extern
BOOL
BITMAP_SetOwnerDC
(
HBITMAP
hbitmap
,
DC
*
dc
);
/* clipping.c */
/* clipping.c */
extern
void
CLIPPING_UpdateGCRegion
(
DC
*
dc
);
extern
void
CLIPPING_UpdateGCRegion
(
DC
*
dc
);
...
@@ -206,6 +307,11 @@ extern DC * DC_GetDCPtr( HDC hdc );
...
@@ -206,6 +307,11 @@ extern DC * DC_GetDCPtr( HDC hdc );
extern
void
DC_InitDC
(
DC
*
dc
);
extern
void
DC_InitDC
(
DC
*
dc
);
extern
void
DC_UpdateXforms
(
DC
*
dc
);
extern
void
DC_UpdateXforms
(
DC
*
dc
);
/* dib.c */
extern
int
DIB_GetDIBWidthBytes
(
int
width
,
int
depth
);
extern
int
DIB_GetDIBImageBytes
(
int
width
,
int
height
,
int
depth
);
extern
int
DIB_BitmapInfoSize
(
const
BITMAPINFO
*
info
,
WORD
coloruse
);
/* driver.c */
/* driver.c */
extern
const
DC_FUNCTIONS
*
DRIVER_load_driver
(
LPCWSTR
name
);
extern
const
DC_FUNCTIONS
*
DRIVER_load_driver
(
LPCWSTR
name
);
extern
const
DC_FUNCTIONS
*
DRIVER_get_driver
(
const
DC_FUNCTIONS
*
funcs
);
extern
const
DC_FUNCTIONS
*
DRIVER_get_driver
(
const
DC_FUNCTIONS
*
funcs
);
...
@@ -286,6 +392,7 @@ extern POINT *GDI_Bezier( const POINT *Points, INT count, INT *nPtsOut );
...
@@ -286,6 +392,7 @@ extern POINT *GDI_Bezier( const POINT *Points, INT count, INT *nPtsOut );
/* palette.c */
/* palette.c */
extern
HPALETTE
WINAPI
GDISelectPalette
(
HDC
hdc
,
HPALETTE
hpal
,
WORD
wBkg
);
extern
HPALETTE
WINAPI
GDISelectPalette
(
HDC
hdc
,
HPALETTE
hpal
,
WORD
wBkg
);
extern
UINT
WINAPI
GDIRealizePalette
(
HDC
hdc
);
extern
UINT
WINAPI
GDIRealizePalette
(
HDC
hdc
);
extern
HPALETTE
PALETTE_Init
(
void
);
/* region.c */
/* region.c */
extern
BOOL
REGION_FrameRgn
(
HRGN
dest
,
HRGN
src
,
INT
x
,
INT
y
);
extern
BOOL
REGION_FrameRgn
(
HRGN
dest
,
HRGN
src
,
INT
x
,
INT
y
);
...
...
dlls/gdi/mfdrv/bitblt.c
View file @
05df86a3
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include "gdi.h"
#include "gdi.h"
#include "mfdrv/metafiledrv.h"
#include "mfdrv/metafiledrv.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "bitmap.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
metafile
);
WINE_DEFAULT_DEBUG_CHANNEL
(
metafile
);
...
...
dlls/gdi/mfdrv/metafiledrv.h
View file @
05df86a3
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include "winbase.h"
#include "winbase.h"
#include "wingdi.h"
#include "wingdi.h"
#include "gdi.h"
#include "gdi.h"
#include "gdi_private.h"
/* Metafile driver physical DC */
/* Metafile driver physical DC */
...
...
dlls/gdi/mfdrv/objects.c
View file @
05df86a3
...
@@ -21,10 +21,14 @@
...
@@ -21,10 +21,14 @@
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <stdarg.h>
#include "bitmap.h"
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "wownt32.h"
#include "wownt32.h"
#include "mfdrv/metafiledrv.h"
#include "mfdrv/metafiledrv.h"
#include "gdi.h"
#include "gdi_private.h"
#include "gdi_private.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
dlls/gdi/painting.c
View file @
05df86a3
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
#include "wingdi.h"
#include "wingdi.h"
#include "winerror.h"
#include "winerror.h"
#include "gdi.h"
#include "gdi.h"
#include "bitmap.h"
#include "gdi_private.h"
#include "gdi_private.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
dlls/gdi/wing.c
View file @
05df86a3
...
@@ -20,11 +20,11 @@
...
@@ -20,11 +20,11 @@
#include "config.h"
#include "config.h"
#include "wine/winuser16.h"
#include "bitmap.h"
#include "wine/debug.h"
#include "windef.h"
#include "windef.h"
#include "wownt32.h"
#include "wownt32.h"
#include "gdi.h"
#include "wine/winuser16.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wing
);
WINE_DEFAULT_DEBUG_CHANNEL
(
wing
);
...
...
dlls/ttydrv/palette.c
View file @
05df86a3
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include "
palette
.h"
#include "
gdi
.h"
#include "winbase.h"
#include "winbase.h"
#include "ttydrv.h"
#include "ttydrv.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
dlls/x11drv/bitmap.c
View file @
05df86a3
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include "gdi.h"
#include "gdi.h"
#include "bitmap.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "x11drv.h"
#include "x11drv.h"
#include "wingdi.h"
#include "wingdi.h"
...
...
dlls/x11drv/brush.c
View file @
05df86a3
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include "
bitmap
.h"
#include "
gdi
.h"
#include "x11drv.h"
#include "x11drv.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
dlls/x11drv/dib.c
View file @
05df86a3
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#include <string.h>
#include <string.h>
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "
bitmap
.h"
#include "
gdi
.h"
#include "x11drv.h"
#include "x11drv.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
dlls/x11drv/palette.c
View file @
05df86a3
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include <string.h>
#include <string.h>
#include "gdi.h"
#include "gdi.h"
#include "palette.h"
#include "windef.h"
#include "windef.h"
#include "winreg.h"
#include "winreg.h"
#include "x11drv.h"
#include "x11drv.h"
...
...
dlls/x11drv/x11ddraw.c
View file @
05df86a3
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include "windef.h"
#include "windef.h"
#include "wingdi.h"
#include "wingdi.h"
#include "ddrawi.h"
#include "ddrawi.h"
#include "
bitmap
.h"
#include "
gdi
.h"
#include "wine/debug.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
x11drv
);
WINE_DEFAULT_DEBUG_CHANNEL
(
x11drv
);
...
...
include/bitmap.h
deleted
100644 → 0
View file @
7b48ddcb
/*
* GDI bitmap definitions
*
* Copyright 1993, 1994 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __WINE_BITMAP_H
#define __WINE_BITMAP_H
#include <gdi.h>
/* GDI logical bitmap object */
typedef
struct
tagBITMAPOBJ
{
GDIOBJHDR
header
;
BITMAP
bitmap
;
SIZE
size
;
/* For SetBitmapDimension() */
const
struct
tagDC_FUNCS
*
funcs
;
/* DC function table */
void
*
physBitmap
;
/* ptr to device specific data */
/* For device-independent bitmaps: */
DIBSECTION
*
dib
;
SEGPTR
segptr_bits
;
/* segptr to DIB bits */
}
BITMAPOBJ
;
/* objects/bitmap.c */
extern
HBITMAP
BITMAP_CopyBitmap
(
HBITMAP
hbitmap
);
extern
BOOL
BITMAP_SetOwnerDC
(
HBITMAP
hbitmap
,
DC
*
dc
);
/* objects/dib.c */
extern
int
DIB_GetDIBWidthBytes
(
int
width
,
int
depth
);
extern
int
DIB_GetDIBImageBytes
(
int
width
,
int
height
,
int
depth
);
extern
int
DIB_BitmapInfoSize
(
const
BITMAPINFO
*
info
,
WORD
coloruse
);
extern
HBITMAP
DIB_CreateDIBSection
(
HDC
hdc
,
BITMAPINFO
*
bmi
,
UINT
usage
,
LPVOID
*
bits
,
HANDLE
section
,
DWORD
offset
,
DWORD
ovr_pitch
);
extern
void
DIB_UpdateDIBSection
(
DC
*
dc
,
BOOL
toDIB
);
extern
void
DIB_SelectDIBSection
(
DC
*
dc
,
BITMAPOBJ
*
bmp
);
#endif
/* __WINE_BITMAP_H */
include/gdi.h
View file @
05df86a3
...
@@ -66,106 +66,37 @@ typedef struct tagGDIOBJHDR
...
@@ -66,106 +66,37 @@ typedef struct tagGDIOBJHDR
struct
hdc_list
*
hdcs
;
struct
hdc_list
*
hdcs
;
}
GDIOBJHDR
;
}
GDIOBJHDR
;
/* extra stock object: default 1x1 bitmap for memory DCs */
#define DEFAULT_BITMAP (STOCK_LAST+1)
/* It should not be necessary to access the contents of the GdiPath
/* bitmap object */
* structure directly; if you find that the exported functions don't
* allow you to do what you want, then please place a new exported
* function that does this job in path.c.
*/
typedef
enum
tagGdiPathState
{
PATH_Null
,
PATH_Open
,
PATH_Closed
}
GdiPathState
;
typedef
struct
tag
GdiPath
typedef
struct
tag
BITMAPOBJ
{
{
GdiPathState
state
;
GDIOBJHDR
header
;
POINT
*
pPoints
;
BITMAP
bitmap
;
BYTE
*
pFlags
;
SIZE
size
;
/* For SetBitmapDimension() */
int
numEntriesUsed
,
numEntriesAllocated
;
const
struct
tagDC_FUNCS
*
funcs
;
/* DC function table */
BOOL
newStroke
;
void
*
physBitmap
;
/* ptr to device specific data */
}
GdiPath
;
/* For device-independent bitmaps: */
DIBSECTION
*
dib
;
SEGPTR
segptr_bits
;
/* segptr to DIB bits */
}
BITMAPOBJ
;
typedef
struct
tagGdiFont
*
GdiFont
;
/* palette object */
typedef
struct
{
int
opaque
;
}
*
PHYSDEV
;
/* PHYSDEV is an opaque pointer
*/
#define NB_RESERVED_COLORS 20
/* number of fixed colors in system palette
*/
typedef
struct
tagDC
#define PC_SYS_USED 0x80
/* palentry is used (both system and logical) */
{
#define PC_SYS_RESERVED 0x40
/* system palentry is not to be mapped to */
GDIOBJHDR
header
;
#define PC_SYS_MAPPED 0x10
/* logical palentry is a direct alias for system palentry */
HDC
hSelf
;
/* Handle to this DC */
const
struct
tagDC_FUNCS
*
funcs
;
/* DC function table */
PHYSDEV
physDev
;
/* Physical device (driver-specific) */
INT
saveLevel
;
DWORD
dwHookData
;
FARPROC16
hookProc
;
/* the original SEGPTR ... */
DCHOOKPROC
hookThunk
;
/* ... and the thunk to call it */
INT
wndOrgX
;
/* Window origin */
INT
wndOrgY
;
INT
wndExtX
;
/* Window extent */
INT
wndExtY
;
INT
vportOrgX
;
/* Viewport origin */
INT
vportOrgY
;
INT
vportExtX
;
/* Viewport extent */
INT
vportExtY
;
int
flags
;
HRGN
hClipRgn
;
/* Clip region (may be 0) */
HRGN
hVisRgn
;
/* Visible region (must never be 0) */
HPEN
hPen
;
HBRUSH
hBrush
;
HFONT
hFont
;
HBITMAP
hBitmap
;
HANDLE
hDevice
;
HPALETTE
hPalette
;
GdiFont
gdiFont
;
GdiPath
path
;
WORD
ROPmode
;
WORD
polyFillMode
;
WORD
stretchBltMode
;
WORD
relAbsMode
;
WORD
backgroundMode
;
COLORREF
backgroundColor
;
COLORREF
textColor
;
COLORREF
dcBrushColor
;
COLORREF
dcPenColor
;
short
brushOrgX
;
short
brushOrgY
;
WORD
textAlign
;
/* Text alignment from SetTextAlign() */
INT
charExtra
;
/* Spacing from SetTextCharacterExtra() */
INT
breakExtra
;
/* breakTotalExtra / breakCount */
INT
breakRem
;
/* breakTotalExtra % breakCount */
INT
MapMode
;
INT
GraphicsMode
;
/* Graphics mode */
ABORTPROC
pAbortProc
;
/* AbortProc for Printing */
ABORTPROC16
pAbortProc16
;
INT
CursPosX
;
/* Current position */
INT
CursPosY
;
INT
ArcDirection
;
XFORM
xformWorld2Wnd
;
/* World-to-window transformation */
XFORM
xformWorld2Vport
;
/* World-to-viewport transformation */
XFORM
xformVport2World
;
/* Inverse of the above transformation */
BOOL
vport2WorldValid
;
/* Is xformVport2World valid? */
RECT
BoundsRect
;
/* Current bounding rect */
}
DC
;
/* extra stock object: default 1x1 bitmap for memory DCs */
typedef
struct
tagPALETTEOBJ
#define DEFAULT_BITMAP (STOCK_LAST+1)
/* Rounds a floating point number to integer. The world-to-viewport
* transformation process is done in floating point internally. This function
* is then used to round these coordinates to integer values.
*/
static
inline
INT
WINE_UNUSED
GDI_ROUND
(
FLOAT
val
)
{
{
return
(
int
)
floor
(
val
+
0
.
5
);
GDIOBJHDR
header
;
}
int
*
mapping
;
LOGPALETTE
logpalette
;
/* _MUST_ be the last field */
}
PALETTEOBJ
;
/* GDI local heap */
/* GDI local heap */
...
...
include/palette.h
deleted
100644 → 0
View file @
7b48ddcb
/*
* GDI palette definitions
*
* Copyright 1994 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __WINE_PALETTE_H
#define __WINE_PALETTE_H
#include <gdi.h>
#define NB_RESERVED_COLORS 20
/* number of fixed colors in system palette */
#define PC_SYS_USED 0x80
/* palentry is used (both system and logical) */
#define PC_SYS_RESERVED 0x40
/* system palentry is not to be mapped to */
#define PC_SYS_MAPPED 0x10
/* logical palentry is a direct alias for system palentry */
/* GDI logical palette object */
typedef
struct
tagPALETTEOBJ
{
GDIOBJHDR
header
;
int
*
mapping
;
LOGPALETTE
logpalette
;
/* _MUST_ be the last field */
}
PALETTEOBJ
;
extern
HPALETTE
PALETTE_Init
(
void
);
#endif
/* __WINE_PALETTE_H */
objects/bitmap.c
View file @
05df86a3
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#include "wine/winbase16.h"
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wine/winuser16.h"
#include "gdi.h"
#include "gdi.h"
#include "bitmap.h"
#include "gdi_private.h"
#include "gdi_private.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
objects/brush.c
View file @
05df86a3
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "winbase.h"
#include "winbase.h"
#include "wingdi.h"
#include "wingdi.h"
#include "wine/wingdi16.h"
#include "wine/wingdi16.h"
#include "
bitmap
.h"
#include "
gdi
.h"
#include "wownt32.h"
#include "wownt32.h"
#include "gdi_private.h"
#include "gdi_private.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
objects/dib.c
View file @
05df86a3
...
@@ -24,12 +24,10 @@
...
@@ -24,12 +24,10 @@
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "bitmap.h"
#include "gdi.h"
#include "gdi.h"
#include "wownt32.h"
#include "wownt32.h"
#include "gdi_private.h"
#include "gdi_private.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "palette.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
bitmap
);
WINE_DEFAULT_DEBUG_CHANNEL
(
bitmap
);
...
...
objects/gdiobj.c
View file @
05df86a3
...
@@ -31,9 +31,7 @@
...
@@ -31,9 +31,7 @@
#include "winreg.h"
#include "winreg.h"
#include "winerror.h"
#include "winerror.h"
#include "bitmap.h"
#include "local.h"
#include "local.h"
#include "palette.h"
#include "gdi.h"
#include "gdi.h"
#include "gdi_private.h"
#include "gdi_private.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
objects/metafile.c
View file @
05df86a3
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
#include "wine/winbase16.h"
#include "wine/winbase16.h"
#include "wine/wingdi16.h"
#include "wine/wingdi16.h"
#include "
bitmap
.h"
#include "
gdi
.h"
#include "wownt32.h"
#include "wownt32.h"
#include "winreg.h"
#include "winreg.h"
#include "winternl.h"
#include "winternl.h"
...
...
objects/palette.c
View file @
05df86a3
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
#include "wine/winuser16.h"
#include "wine/winuser16.h"
#include "gdi.h"
#include "gdi.h"
#include "gdi_private.h"
#include "gdi_private.h"
#include "palette.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "winerror.h"
#include "winerror.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment