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
6ecade7c
Commit
6ecade7c
authored
Jul 29, 2002
by
Chris Morgan
Committed by
Alexandre Julliard
Jul 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some dos VGA error handling. Misc TRACE changes.
parent
bad8b4ca
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
13 deletions
+34
-13
int10.c
dlls/winedos/int10.c
+3
-2
vga.c
dlls/winedos/vga.c
+19
-4
vga.h
dlls/winedos/vga.h
+2
-2
audio.c
dlls/winmm/winearts/audio.c
+0
-3
console.c
win32/console.c
+10
-2
No files found.
dlls/winedos/int10.c
View file @
6ecade7c
...
...
@@ -769,7 +769,8 @@ static void scroll_window(int direction, char lines, char row1,
{
if
(
!
lines
)
/* Actually, clear the window */
{
VGA_ClearText
(
row1
,
col1
,
row2
,
col2
,
attribute
);
if
(
!
VGA_ClearText
(
row1
,
col1
,
row2
,
col2
,
attribute
))
ERR
(
"VGA_ClearText failed!
\n
"
);
}
else
if
(
direction
==
SCROLL_UP
)
{
...
...
@@ -792,7 +793,7 @@ void WINAPI DOSVM_PutChar(BYTE ascii)
BIOSDATA
*
data
=
DOSMEM_BiosData
();
unsigned
xpos
,
ypos
;
TRACE
(
"char: 0x%02x
\n
"
,
ascii
);
TRACE
(
"char: 0x%02x
(%c)
\n
"
,
ascii
,
ascii
);
VGA_PutChar
(
ascii
);
VGA_GetCursorPos
(
&
xpos
,
&
ypos
);
...
...
dlls/winedos/vga.c
View file @
6ecade7c
...
...
@@ -549,12 +549,17 @@ int VGA_SetAlphaMode(unsigned Xres,unsigned Yres)
return
0
;
}
void
VGA_GetAlphaMode
(
unsigned
*
Xres
,
unsigned
*
Yres
)
BOOL
VGA_GetAlphaMode
(
unsigned
*
Xres
,
unsigned
*
Yres
)
{
CONSOLE_SCREEN_BUFFER_INFO
info
;
GetConsoleScreenBufferInfo
(
VGA_AlphaConsole
(),
&
info
);
if
(
!
GetConsoleScreenBufferInfo
(
VGA_AlphaConsole
(),
&
info
))
{
return
FALSE
;
}
else
{
if
(
Xres
)
*
Xres
=
info
.
dwSize
.
X
;
if
(
Yres
)
*
Yres
=
info
.
dwSize
.
Y
;
return
TRUE
;
}
}
void
VGA_SetCursorShape
(
unsigned
char
start_options
,
unsigned
char
end
)
...
...
@@ -697,7 +702,7 @@ void VGA_SetTextAttribute(BYTE attr)
SetConsoleTextAttribute
(
VGA_AlphaConsole
(),
attr
);
}
void
VGA_ClearText
(
unsigned
row1
,
unsigned
col1
,
BOOL
VGA_ClearText
(
unsigned
row1
,
unsigned
col1
,
unsigned
row2
,
unsigned
col2
,
BYTE
attr
)
{
...
...
@@ -705,7 +710,15 @@ void VGA_ClearText(unsigned row1, unsigned col1,
COORD
off
;
char
*
dat
=
VGA_AlphaBuffer
();
HANDLE
con
=
VGA_AlphaConsole
();
VGA_GetAlphaMode
(
&
width
,
&
height
);
/* return if we fail to get the height and width of the window */
if
(
!
VGA_GetAlphaMode
(
&
width
,
&
height
))
{
ERR
(
"failed
\n
"
);
return
FALSE
;
}
TRACE
(
"dat = %p, width = %d, height = %d
\n
"
,
dat
,
width
,
height
);
EnterCriticalSection
(
&
vga_lock
);
...
...
@@ -723,6 +736,8 @@ void VGA_ClearText(unsigned row1, unsigned col1,
}
LeaveCriticalSection
(
&
vga_lock
);
return
TRUE
;
}
void
VGA_ScrollUpText
(
unsigned
row1
,
unsigned
col1
,
...
...
dlls/winedos/vga.h
View file @
6ecade7c
...
...
@@ -39,14 +39,14 @@ void VGA_Unlock(void);
/* text mode */
int
VGA_SetAlphaMode
(
unsigned
Xres
,
unsigned
Yres
);
void
VGA_GetAlphaMode
(
unsigned
*
Xres
,
unsigned
*
Yres
);
BOOL
VGA_GetAlphaMode
(
unsigned
*
Xres
,
unsigned
*
Yres
);
void
VGA_SetCursorShape
(
unsigned
char
start_options
,
unsigned
char
end
);
void
VGA_SetCursorPos
(
unsigned
X
,
unsigned
Y
);
void
VGA_GetCursorPos
(
unsigned
*
X
,
unsigned
*
Y
);
void
VGA_WriteChars
(
unsigned
X
,
unsigned
Y
,
unsigned
ch
,
int
attr
,
int
count
);
void
VGA_PutChar
(
BYTE
ascii
);
void
VGA_SetTextAttribute
(
BYTE
attr
);
void
VGA_ClearText
(
unsigned
row1
,
unsigned
col1
,
BOOL
VGA_ClearText
(
unsigned
row1
,
unsigned
col1
,
unsigned
row2
,
unsigned
col2
,
BYTE
attr
);
void
VGA_ScrollUpText
(
unsigned
row1
,
unsigned
col1
,
...
...
dlls/winmm/winearts/audio.c
View file @
6ecade7c
...
...
@@ -58,9 +58,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wave
);
/* Allow 1% deviation for sample rates (some ES137x cards) */
#define NEAR_MATCH(rate1,rate2) (((100*((int)(rate1)-(int)(rate2)))/(rate1))==0)
#ifdef HAVE_ARTS
#include <artsc.h>
...
...
win32/console.c
View file @
6ecade7c
...
...
@@ -758,13 +758,18 @@ BOOL WINAPI GetConsoleMode(HANDLE hcon, LPDWORD mode)
* RETURNS
* Success: TRUE
* Failure: FALSE
*
* mode:
* ENABLE_PROCESSED_INPUT 0x01
* ENABLE_LINE_INPUT 0x02
* ENABLE_ECHO_INPUT 0x04
* ENABLE_WINDOW_INPUT 0x08
* ENABLE_MOUSE_INPUT 0x10
*/
BOOL
WINAPI
SetConsoleMode
(
HANDLE
hcon
,
DWORD
mode
)
{
BOOL
ret
;
TRACE
(
"(%x,%lx)
\n
"
,
hcon
,
mode
);
SERVER_START_REQ
(
set_console_mode
)
{
req
->
handle
=
hcon
;
...
...
@@ -775,6 +780,9 @@ BOOL WINAPI SetConsoleMode(HANDLE hcon, DWORD mode)
/* FIXME: when resetting a console input to editline mode, I think we should
* empty the S_EditString buffer
*/
TRACE
(
"(%x,%lx) retval == %d
\n
"
,
hcon
,
mode
,
ret
);
return
ret
;
}
...
...
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