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
a9087568
Commit
a9087568
authored
Jan 02, 2002
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed color definition (bg and fg were swapped).
Fixed some initialisation issues. Fixed exit condition when nothing was allocated.
parent
fbdfef73
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
dialog.c
programs/wineconsole/dialog.c
+4
-4
registry.c
programs/wineconsole/registry.c
+3
-3
user.c
programs/wineconsole/user.c
+1
-1
wineconsole.c
programs/wineconsole/wineconsole.c
+1
-1
console.c
server/console.c
+2
-2
No files found.
programs/wineconsole/dialog.c
View file @
a9087568
...
...
@@ -521,8 +521,8 @@ static BOOL WINAPI WCUSER_FontDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM
di
->
hDlg
=
hDlg
;
SetWindowLong
(
hDlg
,
DWL_USER
,
(
DWORD
)
di
);
fill_list_font
(
di
);
SetWindowLong
(
GetDlgItem
(
hDlg
,
IDC_FNT_COLOR_BK
),
0
,
di
->
config
->
def_attr
&
0x0F
);
SetWindowLong
(
GetDlgItem
(
hDlg
,
IDC_FNT_COLOR_FG
),
0
,
(
di
->
config
->
def_attr
>>
4
)
&
0x0F
);
SetWindowLong
(
GetDlgItem
(
hDlg
,
IDC_FNT_COLOR_BK
),
0
,
(
di
->
config
->
def_attr
>>
4
)
&
0x0F
);
SetWindowLong
(
GetDlgItem
(
hDlg
,
IDC_FNT_COLOR_FG
),
0
,
di
->
config
->
def_attr
&
0x0F
);
break
;
case
WM_COMMAND
:
di
=
(
struct
dialog_info
*
)
GetWindowLong
(
hDlg
,
DWL_USER
);
...
...
@@ -559,8 +559,8 @@ static BOOL WINAPI WCUSER_FontDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM
if
(
val
<
di
->
nFont
)
(
di
->
apply
)(
di
,
hDlg
,
WCUSER_ApplyToFont
,
val
);
(
di
->
apply
)(
di
,
hDlg
,
WCUSER_ApplyToAttribute
,
GetWindowLong
(
GetDlgItem
(
hDlg
,
IDC_FNT_COLOR_BK
),
0
)
|
(
GetWindowLong
(
GetDlgItem
(
hDlg
,
IDC_FNT_COLOR_FG
),
0
)
<<
4
));
(
GetWindowLong
(
GetDlgItem
(
hDlg
,
IDC_FNT_COLOR_BK
),
0
)
<<
4
)
|
GetWindowLong
(
GetDlgItem
(
hDlg
,
IDC_FNT_COLOR_FG
),
0
));
SetWindowLong
(
hDlg
,
DWL_MSGRESULT
,
PSNRET_NOERROR
);
return
TRUE
;
...
...
programs/wineconsole/registry.c
View file @
a9087568
...
...
@@ -72,18 +72,18 @@ BOOL WINECON_RegLoad(struct config_data* cfg)
count
=
sizeof
(
val
);
if
(
!
hConKey
||
RegQueryValueEx
(
hConKey
,
wszScreenBufferSize
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
val
=
0x00
0C0008
;
val
=
0x00
190050
;
cfg
->
sb_height
=
HIWORD
(
val
);
cfg
->
sb_width
=
LOWORD
(
val
);
count
=
sizeof
(
val
);
if
(
!
hConKey
||
RegQueryValueEx
(
hConKey
,
wszScreenColors
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
val
=
0x000
7
;
val
=
0x000
F
;
cfg
->
def_attr
=
val
;
count
=
sizeof
(
val
);
if
(
!
hConKey
||
RegQueryValueEx
(
hConKey
,
wszWindowSize
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
val
=
0x00
0C0008
;
val
=
0x00
190050
;
cfg
->
win_height
=
HIWORD
(
val
);
cfg
->
win_width
=
LOWORD
(
val
);
...
...
programs/wineconsole/user.c
View file @
a9087568
...
...
@@ -1030,7 +1030,7 @@ BOOL WCUSER_InitBackend(struct inner_data* data)
WNDCLASS
wndclass
;
data
->
private
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
inner_data_user
));
data
->
private
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
struct
inner_data_user
));
if
(
!
data
->
private
)
return
FALSE
;
data
->
fnMainLoop
=
WCUSER_MainLoop
;
...
...
programs/wineconsole/wineconsole.c
View file @
a9087568
...
...
@@ -307,7 +307,7 @@ static void WINECON_Delete(struct inner_data* data)
if
(
data
->
hConOut
)
CloseHandle
(
data
->
hConOut
);
if
(
data
->
hSynchro
)
CloseHandle
(
data
->
hSynchro
);
if
(
data
->
cells
)
HeapFree
(
GetProcessHeap
(),
0
,
data
->
cells
);
data
->
fnDeleteBackend
(
data
);
if
(
data
->
fnDeleteBackend
)
data
->
fnDeleteBackend
(
data
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
}
...
...
server/console.c
View file @
a9087568
...
...
@@ -116,7 +116,7 @@ static const struct object_ops screen_buffer_ops =
static
struct
screen_buffer
*
screen_buffer_list
;
static
const
char_info_t
empty_char_info
=
{
' '
,
0x00
f0
};
/* white on black space */
static
const
char_info_t
empty_char_info
=
{
' '
,
0x00
0f
};
/* white on black space */
/* dumps the renderer events of a console */
static
void
console_input_events_dump
(
struct
object
*
obj
,
int
verbose
)
...
...
@@ -227,7 +227,7 @@ static struct screen_buffer *create_console_output( struct console_input *consol
screen_buffer
->
max_height
=
25
;
screen_buffer
->
cursor_x
=
0
;
screen_buffer
->
cursor_y
=
0
;
screen_buffer
->
attr
=
0x
F0
;
screen_buffer
->
attr
=
0x
0F
;
screen_buffer
->
win
.
left
=
0
;
screen_buffer
->
win
.
right
=
screen_buffer
->
max_width
-
1
;
screen_buffer
->
win
.
top
=
0
;
...
...
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