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
17349a06
Commit
17349a06
authored
Nov 17, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Remove remaining references to gdi32 internals from gdi16.c.
parent
06e09f67
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
23 deletions
+10
-23
gdi16.c
dlls/gdi32/gdi16.c
+9
-21
gdi_private.h
dlls/gdi32/gdi_private.h
+0
-1
palette.c
dlls/gdi32/palette.c
+1
-1
No files found.
dlls/gdi32/gdi16.c
View file @
17349a06
...
...
@@ -25,7 +25,6 @@
#include "wingdi.h"
#include "wownt32.h"
#include "wine/wingdi16.h"
#include "gdi_private.h"
#include "wine/list.h"
#include "wine/debug.h"
...
...
@@ -43,6 +42,8 @@ struct saved_visrgn
static
struct
list
saved_regions
=
LIST_INIT
(
saved_regions
);
static
HPALETTE16
hPrimaryPalette
;
/*
* ############################################################################
*/
...
...
@@ -2421,7 +2422,9 @@ HPALETTE16 WINAPI CreatePalette16( const LOGPALETTE* palette )
*/
HPALETTE16
WINAPI
GDISelectPalette16
(
HDC16
hdc
,
HPALETTE16
hpalette
,
WORD
wBkg
)
{
return
HPALETTE_16
(
GDISelectPalette
(
HDC_32
(
hdc
),
HPALETTE_32
(
hpalette
),
wBkg
));
HPALETTE16
ret
=
HPALETTE_16
(
SelectPalette
(
HDC_32
(
hdc
),
HPALETTE_32
(
hpalette
),
wBkg
));
if
(
ret
&&
!
wBkg
)
hPrimaryPalette
=
hpalette
;
return
ret
;
}
...
...
@@ -2430,7 +2433,7 @@ HPALETTE16 WINAPI GDISelectPalette16( HDC16 hdc, HPALETTE16 hpalette, WORD wBkg
*/
UINT16
WINAPI
GDIRealizePalette16
(
HDC16
hdc
)
{
return
GDI
RealizePalette
(
HDC_32
(
hdc
)
);
return
RealizePalette
(
HDC_32
(
hdc
)
);
}
...
...
@@ -3539,16 +3542,8 @@ void WINAPI Copy16( LPVOID src, LPVOID dst, WORD size )
*/
UINT16
WINAPI
RealizeDefaultPalette16
(
HDC16
hdc
)
{
UINT16
ret
=
0
;
DC
*
dc
;
TRACE
(
"%04x
\n
"
,
hdc
);
if
(
!
(
dc
=
get_dc_ptr
(
HDC_32
(
hdc
)
)))
return
0
;
if
(
dc
->
funcs
->
pRealizeDefaultPalette
)
ret
=
dc
->
funcs
->
pRealizeDefaultPalette
(
dc
->
physDev
);
release_dc_ptr
(
dc
);
return
ret
;
FIXME
(
"%04x semi-stub
\n
"
,
hdc
);
return
GDIRealizePalette16
(
hdc
);
}
/***********************************************************************
...
...
@@ -3556,14 +3551,7 @@ UINT16 WINAPI RealizeDefaultPalette16( HDC16 hdc )
*/
BOOL16
WINAPI
IsDCCurrentPalette16
(
HDC16
hDC
)
{
DC
*
dc
=
get_dc_ptr
(
HDC_32
(
hDC
)
);
if
(
dc
)
{
BOOL
bRet
=
dc
->
hPalette
==
hPrimaryPalette
;
release_dc_ptr
(
dc
);
return
bRet
;
}
return
FALSE
;
return
HPALETTE_16
(
GetCurrentObject
(
HDC_32
(
hDC
),
OBJ_PAL
))
==
hPrimaryPalette
;
}
/*********************************************************************
...
...
dlls/gdi32/gdi_private.h
View file @
17349a06
...
...
@@ -484,7 +484,6 @@ extern POINT *GDI_Bezier( const POINT *Points, INT count, INT *nPtsOut ) DECLSPE
extern
HPALETTE
WINAPI
GDISelectPalette
(
HDC
hdc
,
HPALETTE
hpal
,
WORD
wBkg
);
extern
UINT
WINAPI
GDIRealizePalette
(
HDC
hdc
);
extern
HPALETTE
PALETTE_Init
(
void
)
DECLSPEC_HIDDEN
;
extern
HPALETTE
hPrimaryPalette
DECLSPEC_HIDDEN
;
/* region.c */
extern
BOOL
REGION_FrameRgn
(
HRGN
dest
,
HRGN
src
,
INT
x
,
INT
y
)
DECLSPEC_HIDDEN
;
...
...
dlls/gdi32/palette.c
View file @
17349a06
...
...
@@ -67,7 +67,7 @@ UINT (WINAPI *pfnRealizePalette)(HDC hdc) = GDIRealizePalette;
static
UINT
SystemPaletteUse
=
SYSPAL_STATIC
;
/* currently not considered */
HPALETTE
hPrimaryPalette
=
0
;
/* used for WM_PALETTECHANGED */
static
HPALETTE
hPrimaryPalette
=
0
;
/* used for WM_PALETTECHANGED */
static
HPALETTE
hLastRealizedPalette
=
0
;
/* UnrealizeObject() needs it */
#define NB_RESERVED_COLORS 20
/* number of fixed colors in system palette */
...
...
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