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
27398d49
Commit
27398d49
authored
Mar 20, 2001
by
Ove Kaaven
Committed by
Alexandre Julliard
Mar 20, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented Get/SetDeviceGammaRamp.
parent
ca6c9a6a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
45 additions
and
3 deletions
+45
-3
dc.c
dlls/ttydrv/dc.c
+2
-0
init.c
dlls/wineps/init.c
+2
-0
init.c
graphics/enhmetafiledrv/init.c
+2
-0
init.c
graphics/metafiledrv/init.c
+2
-0
init.c
graphics/win16drv/init.c
+2
-0
init.c
graphics/x11drv/init.c
+2
-0
gdi.h
include/gdi.h
+2
-0
wingdi.h
include/wingdi.h
+2
-0
dc.c
objects/dc.c
+29
-3
No files found.
dlls/ttydrv/dc.c
View file @
27398d49
...
...
@@ -54,6 +54,7 @@ static const DC_FUNCTIONS TTYDRV_DC_Driver =
NULL
,
/* pFrameRgn */
TTYDRV_DC_GetCharWidth
,
/* pGetCharWidth */
NULL
,
/* pGetDCOrgEx */
NULL
,
/* pGetDeviceGammaRamp */
TTYDRV_DC_GetPixel
,
/* pGetPixel */
NULL
,
/* pGetPixelFormat */
TTYDRV_DC_GetTextExtentPoint
,
/* pGetTextExtentPoint */
...
...
@@ -90,6 +91,7 @@ static const DC_FUNCTIONS TTYDRV_DC_Driver =
TTYDRV_DC_SetBkColor
,
/* pSetBkColor */
NULL
,
/* pSetBkMode */
TTYDRV_DC_SetDeviceClipping
,
/* pSetDeviceClipping */
NULL
,
/* pSetDeviceGammaRamp */
TTYDRV_DC_SetDIBitsToDevice
,
/* pSetDIBitsToDevice */
NULL
,
/* pSetMapMode (optional) */
NULL
,
/* pSetMapperFlags */
...
...
dlls/wineps/init.c
View file @
27398d49
...
...
@@ -58,6 +58,7 @@ static const DC_FUNCTIONS PSDRV_Funcs =
NULL
,
/* pFrameRgn */
PSDRV_GetCharWidth
,
/* pGetCharWidth */
NULL
,
/* pGetDCOrgEx */
NULL
,
/* pGetDeviceGammaRamp */
NULL
,
/* pGetPixel */
NULL
,
/* pGetPixelFormat */
PSDRV_GetTextExtentPoint
,
/* pGetTextExtentPoint */
...
...
@@ -94,6 +95,7 @@ static const DC_FUNCTIONS PSDRV_Funcs =
PSDRV_SetBkColor
,
/* pSetBkColor */
NULL
,
/* pSetBkMode */
PSDRV_SetDeviceClipping
,
/* pSetDeviceClipping */
NULL
,
/* pSetDeviceGammaRamp */
NULL
,
/* pSetDIBitsToDevice */
NULL
,
/* pSetMapMode (optional) */
NULL
,
/* pSetMapperFlags */
...
...
graphics/enhmetafiledrv/init.c
View file @
27398d49
...
...
@@ -53,6 +53,7 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
EMFDRV_FrameRgn
,
/* pFrameRgn */
NULL
,
/* pGetCharWidth */
NULL
,
/* pGetDCOrgEx */
NULL
,
/* pGetDeviceGammaRamp */
NULL
,
/* no implementation */
/* pGetPixel */
NULL
,
/* pGetPixelFormat */
NULL
,
/* pGetTextExtentPoint */
...
...
@@ -89,6 +90,7 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
EMFDRV_SetBkColor
,
/* pSetBkColor */
EMFDRV_SetBkMode
,
/* pSetBkMode */
NULL
,
/* pSetDeviceClipping */
NULL
,
/* pSetDeviceGammaRamp */
NULL
,
/* pSetDIBitsToDevice */
EMFDRV_SetMapMode
,
/* pSetMapMode */
EMFDRV_SetMapperFlags
,
/* pSetMapperFlags */
...
...
graphics/metafiledrv/init.c
View file @
27398d49
...
...
@@ -53,6 +53,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
MFDRV_FrameRgn
,
/* pFrameRgn */
NULL
,
/* pGetCharWidth */
NULL
,
/* pGetDCOrgEx */
NULL
,
/* pGetDeviceGammaRamp */
NULL
,
/* no implementation */
/* pGetPixel */
NULL
,
/* pGetPixelFormat */
NULL
,
/* pGetTextExtentPoint */
...
...
@@ -89,6 +90,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
MFDRV_SetBkColor
,
/* pSetBkColor */
MFDRV_SetBkMode
,
/* pSetBkMode */
NULL
,
/* pSetDeviceClipping */
NULL
,
/* pSetDeviceGammaRamp */
MFDRV_SetDIBitsToDevice
,
/* pSetDIBitsToDevice */
MFDRV_SetMapMode
,
/* pSetMapMode */
MFDRV_SetMapperFlags
,
/* pSetMapperFlags */
...
...
graphics/win16drv/init.c
View file @
27398d49
...
...
@@ -79,6 +79,7 @@ static const DC_FUNCTIONS WIN16DRV_Funcs =
NULL
,
/* pFrameRgn */
WIN16DRV_GetCharWidth
,
/* pGetCharWidth */
NULL
,
/* pGetDCOrgEx */
NULL
,
/* pGetDeviceGammaRamp */
NULL
,
/* pGetPixel */
NULL
,
/* pGetPixelFormat */
WIN16DRV_GetTextExtentPoint
,
/* pGetTextExtentPoint */
...
...
@@ -115,6 +116,7 @@ static const DC_FUNCTIONS WIN16DRV_Funcs =
NULL
,
/* pSetBkColor */
NULL
,
/* pSetBkMode */
NULL
,
/* pSetDeviceClipping */
NULL
,
/* pSetDeviceGammaRamp */
NULL
,
/* pSetDIBitsToDevice */
NULL
,
/* pSetMapMode */
NULL
,
/* pSetMapperFlags */
...
...
graphics/x11drv/init.c
View file @
27398d49
...
...
@@ -62,6 +62,7 @@ const DC_FUNCTIONS X11DRV_DC_Funcs =
NULL
,
/* pFrameRgn */
X11DRV_GetCharWidth
,
/* pGetCharWidth */
X11DRV_GetDCOrgEx
,
/* pGetDCOrgEx */
X11DRV_GetDeviceGammaRamp
,
/* pGetDeviceGammaRamp */
X11DRV_GetPixel
,
/* pGetPixel */
X11DRV_GetPixelFormat
,
/* pGetPixelFormat */
X11DRV_GetTextExtentPoint
,
/* pGetTextExtentPoint */
...
...
@@ -98,6 +99,7 @@ const DC_FUNCTIONS X11DRV_DC_Funcs =
X11DRV_SetBkColor
,
/* pSetBkColor */
NULL
,
/* pSetBkMode */
X11DRV_SetDeviceClipping
,
/* pSetDeviceClipping */
X11DRV_SetDeviceGammaRamp
,
/* pSetDeviceGammaRamp */
X11DRV_SetDIBitsToDevice
,
/* pSetDIBitsToDevice */
NULL
,
/* pSetMapMode (optional) */
NULL
,
/* pSetMapperFlags */
...
...
include/gdi.h
View file @
27398d49
...
...
@@ -199,6 +199,7 @@ typedef struct tagDC_FUNCS
BOOL
(
*
pFrameRgn
)(
DC
*
,
HRGN
,
HBRUSH
,
INT
,
INT
);
BOOL
(
*
pGetCharWidth
)(
DC
*
,
UINT
,
UINT
,
LPINT
);
BOOL
(
*
pGetDCOrgEx
)(
DC
*
,
LPPOINT
);
BOOL
(
*
pGetDeviceGammaRamp
)(
DC
*
,
LPVOID
);
COLORREF
(
*
pGetPixel
)(
DC
*
,
INT
,
INT
);
INT
(
*
pGetPixelFormat
)(
DC
*
);
BOOL
(
*
pGetTextExtentPoint
)(
DC
*
,
LPCWSTR
,
INT
,
LPSIZE
);
...
...
@@ -235,6 +236,7 @@ typedef struct tagDC_FUNCS
COLORREF
(
*
pSetBkColor
)(
DC
*
,
COLORREF
);
INT
(
*
pSetBkMode
)(
DC
*
,
INT
);
VOID
(
*
pSetDeviceClipping
)(
DC
*
);
BOOL
(
*
pSetDeviceGammaRamp
)(
DC
*
,
LPVOID
);
INT
(
*
pSetDIBitsToDevice
)(
DC
*
,
INT
,
INT
,
DWORD
,
DWORD
,
INT
,
INT
,
UINT
,
UINT
,
LPCVOID
,
const
BITMAPINFO
*
,
UINT
);
INT
(
*
pSetMapMode
)(
DC
*
,
INT
);
...
...
include/wingdi.h
View file @
27398d49
...
...
@@ -3139,6 +3139,7 @@ BOOL WINAPI GetColorAdjustment(HDC, LPCOLORADJUSTMENT);
HANDLE
WINAPI
GetCurrentObject
(
HDC
,
UINT
);
BOOL
WINAPI
GetCurrentPositionEx
(
HDC
,
LPPOINT
);
INT
WINAPI
GetDeviceCaps
(
HDC
,
INT
);
BOOL
WINAPI
GetDeviceGammaRamp
(
HDC
,
LPVOID
);
COLORREF
WINAPI
GetDCBrushColor
(
HDC
);
BOOL
WINAPI
GetDCOrgEx
(
HDC
,
LPPOINT
);
COLORREF
WINAPI
GetDCPenColor
(
HDC
);
...
...
@@ -3286,6 +3287,7 @@ UINT WINAPI SetBoundsRect(HDC,const RECT*,UINT);
BOOL
WINAPI
SetBrushOrgEx
(
HDC
,
INT
,
INT
,
LPPOINT
);
BOOL
WINAPI
SetColorAdjustment
(
HDC
,
const
COLORADJUSTMENT
*
);
HCOLORSPACE
WINAPI
SetColorSpace
(
HDC
,
HCOLORSPACE
);
BOOL
WINAPI
SetDeviceGammaRamp
(
HDC
,
LPVOID
);
UINT
WINAPI
SetDIBColorTable
(
HDC
,
UINT
,
UINT
,
RGBQUAD
*
);
INT
WINAPI
SetDIBits
(
HDC
,
HBITMAP
,
UINT
,
UINT
,
LPCVOID
,
const
BITMAPINFO
*
,
UINT
);
INT
WINAPI
SetDIBitsToDevice
(
HDC
,
INT
,
INT
,
DWORD
,
DWORD
,
INT
,
...
...
objects/dc.c
View file @
27398d49
...
...
@@ -1285,9 +1285,35 @@ INT WINAPI SetICMMode(HDC hdc, INT iEnableICM)
/***********************************************************************
* GetDeviceGammaRamp (GDI32.@)
*/
BOOL
WINAPI
GetDeviceGammaRamp
(
HDC
hdc
,
LPVOID
ptr
)
{
FIXME
(
"(%x,%p), empty stub!
\n
"
,
hdc
,
ptr
);
return
FALSE
;
BOOL
WINAPI
GetDeviceGammaRamp
(
HDC
hDC
,
LPVOID
ptr
)
{
BOOL
ret
=
FALSE
;
DC
*
dc
=
DC_GetDCPtr
(
hDC
);
if
(
dc
)
{
if
(
dc
->
funcs
->
pGetDeviceGammaRamp
)
ret
=
dc
->
funcs
->
pGetDeviceGammaRamp
(
dc
,
ptr
);
GDI_ReleaseObj
(
hDC
);
}
return
ret
;
}
/***********************************************************************
* SetDeviceGammaRamp (GDI32.@)
*/
BOOL
WINAPI
SetDeviceGammaRamp
(
HDC
hDC
,
LPVOID
ptr
)
{
BOOL
ret
=
FALSE
;
DC
*
dc
=
DC_GetDCPtr
(
hDC
);
if
(
dc
)
{
if
(
dc
->
funcs
->
pSetDeviceGammaRamp
)
ret
=
dc
->
funcs
->
pSetDeviceGammaRamp
(
dc
,
ptr
);
GDI_ReleaseObj
(
hDC
);
}
return
ret
;
}
/***********************************************************************
...
...
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