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
945f4a79
Commit
945f4a79
authored
Aug 23, 2007
by
Kirill K. Smirnov
Committed by
Alexandre Julliard
Aug 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Move window handle to inner_data structure.
parent
2918a272
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
5 deletions
+6
-5
curses.c
programs/wineconsole/curses.c
+1
-0
dialog.c
programs/wineconsole/dialog.c
+4
-4
user.c
programs/wineconsole/user.c
+0
-0
winecon_private.h
programs/wineconsole/winecon_private.h
+1
-0
winecon_user.h
programs/wineconsole/winecon_user.h
+0
-1
No files found.
programs/wineconsole/curses.c
View file @
945f4a79
...
...
@@ -953,6 +953,7 @@ enum init_return WCCURSES_InitBackend(struct inner_data* data)
data
->
fnScroll
=
WCCURSES_Scroll
;
data
->
fnSetFont
=
WCCURSES_SetFont
;
data
->
fnDeleteBackend
=
WCCURSES_DeleteBackend
;
data
->
hWnd
=
NULL
;
if
(
wine_server_fd_to_handle
(
0
,
GENERIC_READ
|
SYNCHRONIZE
,
0
,
(
obj_handle_t
*
)
&
PRIVATE
(
data
)
->
hInput
))
...
...
programs/wineconsole/dialog.c
View file @
945f4a79
...
...
@@ -434,7 +434,7 @@ static BOOL select_font(struct dialog_info* di)
WCUSER_FillLogFont
(
&
lf
,
di
->
font
[
size_idx
].
faceName
,
di
->
font
[
size_idx
].
height
,
di
->
font
[
size_idx
].
weight
);
hFont
=
WCUSER_CopyFont
(
&
config
,
PRIVATE
(
di
->
data
)
->
hWnd
,
&
lf
,
NULL
);
hFont
=
WCUSER_CopyFont
(
&
config
,
di
->
data
->
hWnd
,
&
lf
,
NULL
);
if
(
!
hFont
)
return
FALSE
;
if
(
config
.
cell_height
!=
di
->
font
[
size_idx
].
height
)
...
...
@@ -573,7 +573,7 @@ static INT_PTR WINAPI WCUSER_FontDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPA
WCUSER_FillLogFont
(
&
lf
,
di
->
font
[
val
].
faceName
,
di
->
font
[
val
].
height
,
di
->
font
[
val
].
weight
);
DeleteObject
(
WCUSER_CopyFont
(
&
di
->
config
,
PRIVATE
(
di
->
data
)
->
hWnd
,
&
lf
,
NULL
));
di
->
data
->
hWnd
,
&
lf
,
NULL
));
}
val
=
(
GetWindowLong
(
GetDlgItem
(
hDlg
,
IDC_FNT_COLOR_BK
),
0
)
<<
4
)
|
...
...
@@ -831,7 +831,7 @@ BOOL WCUSER_GetProperties(struct inner_data* data, BOOL current)
psHead
.
pszCaption
=
buff
;
psHead
.
nPages
=
3
;
psHead
.
hwndParent
=
PRIVATE
(
data
)
->
hWnd
;
psHead
.
hwndParent
=
data
->
hWnd
;
psHead
.
u3
.
phpage
=
psPage
;
WINECON_DumpConfig
(
"init"
,
refcfg
);
...
...
@@ -846,7 +846,7 @@ BOOL WCUSER_GetProperties(struct inner_data* data, BOOL current)
if
(
refcfg
==
&
data
->
curcfg
)
{
switch
(
DialogBox
(
GetModuleHandle
(
NULL
),
MAKEINTRESOURCE
(
IDD_SAVE_SETTINGS
),
PRIVATE
(
data
)
->
hWnd
,
WCUSER_SaveDlgProc
))
data
->
hWnd
,
WCUSER_SaveDlgProc
))
{
case
IDC_SAV_SAVE
:
save
=
TRUE
;
modify_session
=
TRUE
;
break
;
case
IDC_SAV_SESSION
:
modify_session
=
TRUE
;
break
;
...
...
programs/wineconsole/user.c
View file @
945f4a79
This diff is collapsed.
Click to expand it.
programs/wineconsole/winecon_private.h
View file @
945f4a79
...
...
@@ -58,6 +58,7 @@ struct inner_data {
HANDLE
hConIn
;
/* console input handle */
HANDLE
hConOut
;
/* screen buffer handle: has to be changed when active sb changes */
HANDLE
hSynchro
;
/* waitable handle signalled by server when something in server has been modified */
HWND
hWnd
;
/* handle of 'user' window or NULL for 'curses' */
INT
nCmdShow
;
/* argument of WinMain */
int
(
*
fnMainLoop
)(
struct
inner_data
*
data
);
...
...
programs/wineconsole/winecon_user.h
View file @
945f4a79
...
...
@@ -28,7 +28,6 @@
struct
inner_data_user
{
/* the following fields are only user by the USER backend (should be hidden in user) */
HWND
hWnd
;
/* handle to windows for rendering */
HFONT
hFont
;
/* font used for rendering, usually fixed */
LONG
ext_leading
;
/* external leading for hFont */
HDC
hMemDC
;
/* memory DC holding the bitmap below */
...
...
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