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
2b1747cc
Commit
2b1747cc
authored
Dec 03, 2005
by
Pavel Roskin
Committed by
Alexandre Julliard
Dec 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed regression in wineconsole creation (curses backend).
parent
18c5a0a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
wineconsole.c
programs/wineconsole/wineconsole.c
+7
-9
No files found.
programs/wineconsole/wineconsole.c
View file @
2b1747cc
...
...
@@ -290,17 +290,13 @@ int WINECON_GrabChanges(struct inner_data* data)
break
;
case
CONSOLE_RENDERER_SB_RESIZE_EVENT
:
if
(
data
->
curcfg
.
sb_width
!=
evts
[
i
].
u
.
resize
.
width
||
data
->
curcfg
.
sb_height
!=
evts
[
i
].
u
.
resize
.
height
||
!
data
->
cells
)
data
->
curcfg
.
sb_height
!=
evts
[
i
].
u
.
resize
.
height
)
{
WINE_TRACE
(
" resize(%d,%d)"
,
evts
[
i
].
u
.
resize
.
width
,
evts
[
i
].
u
.
resize
.
height
);
data
->
curcfg
.
sb_width
=
evts
[
i
].
u
.
resize
.
width
;
data
->
curcfg
.
sb_height
=
evts
[
i
].
u
.
resize
.
height
;
if
(
data
->
cells
)
data
->
cells
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
data
->
cells
,
data
->
curcfg
.
sb_width
*
data
->
curcfg
.
sb_height
*
sizeof
(
CHAR_INFO
));
else
data
->
cells
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
data
->
cells
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
data
->
cells
,
data
->
curcfg
.
sb_width
*
data
->
curcfg
.
sb_height
*
sizeof
(
CHAR_INFO
));
if
(
!
data
->
cells
)
WINECON_Fatal
(
"OOM
\n
"
);
...
...
@@ -557,9 +553,6 @@ static BOOL WINECON_GetServerConfig(struct inner_data* data)
}
SERVER_END_REQ
;
WINECON_DumpConfig
(
"first cfg: "
,
&
data
->
curcfg
);
data
->
cells
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
data
->
curcfg
.
sb_width
*
data
->
curcfg
.
sb_height
*
sizeof
(
CHAR_INFO
));
if
(
!
data
->
cells
)
WINECON_Fatal
(
"OOM
\n
"
);
return
ret
;
}
...
...
@@ -655,6 +648,11 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
{
case
init_success
:
WINECON_GetServerConfig
(
data
);
data
->
cells
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
data
->
curcfg
.
sb_width
*
data
->
curcfg
.
sb_height
*
sizeof
(
CHAR_INFO
));
if
(
!
data
->
cells
)
WINECON_Fatal
(
"OOM
\n
"
);
data
->
fnResizeScreenBuffer
(
data
);
data
->
fnComputePositions
(
data
);
WINECON_SetConfig
(
data
,
&
cfg
);
data
->
curcfg
.
registry
=
cfg
.
registry
;
WINECON_DumpConfig
(
"fint"
,
&
data
->
curcfg
);
...
...
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