Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d4361253
Commit
d4361253
authored
Apr 18, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to preallocate DCEs since they are allocated on demand
anyway.
parent
c7d39318
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
23 deletions
+3
-23
user_main.c
dlls/user/user_main.c
+0
-4
dce.c
windows/dce.c
+3
-19
No files found.
dlls/user/user_main.c
View file @
d4361253
...
...
@@ -12,7 +12,6 @@
#include "wine/winuser16.h"
#include "controls.h"
#include "dce.h"
#include "global.h"
#include "input.h"
#include "keyboard.h"
...
...
@@ -211,9 +210,6 @@ BOOL WINAPI USER_Init(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
/* Setup palette function pointers */
palette_init
();
/* Create the DCEs */
DCE_Init
();
/* Initialize window procedures */
if
(
!
WINPROC_Init
())
return
FALSE
;
...
...
windows/dce.c
View file @
d4361253
...
...
@@ -31,10 +31,8 @@
DEFAULT_DEBUG_CHANNEL
(
dc
);
#define NB_DCE 5
/* Number of DCEs created at startup */
static
DCE
*
firstDCE
=
0
;
static
HDC
defaultDCstate
=
0
;
static
DCE
*
firstDCE
;
static
HDC
defaultDCstate
;
static
void
DCE_DeleteClipRgn
(
DCE
*
);
static
INT
DCE_ReleaseDC
(
DCE
*
);
...
...
@@ -80,6 +78,7 @@ DCE *DCE_AllocDCE( HWND hWnd, DCE_TYPE type )
HeapFree
(
GetProcessHeap
(),
0
,
dce
);
return
0
;
}
if
(
!
defaultDCstate
)
defaultDCstate
=
GetDCState16
(
dce
->
hDC
);
wnd
=
WIN_FindWndPtr
(
hWnd
);
...
...
@@ -356,21 +355,6 @@ BOOL DCE_InvalidateDCE(WND* pWnd, const RECT* pRectUpdate)
return
bRet
;
}
/***********************************************************************
* DCE_Init
*/
void
DCE_Init
(
void
)
{
int
i
;
DCE
*
dce
;
for
(
i
=
0
;
i
<
NB_DCE
;
i
++
)
{
if
(
!
(
dce
=
DCE_AllocDCE
(
0
,
DCE_CACHE_DC
)))
return
;
if
(
!
defaultDCstate
)
defaultDCstate
=
GetDCState16
(
dce
->
hDC
);
}
}
/***********************************************************************
* DCE_GetVisRect
...
...
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