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
c772cdfc
Commit
c772cdfc
authored
Jun 15, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedos: Move VGA_SetGraphicMode() up a bit and make it static.…
winedos: Move VGA_SetGraphicMode() up a bit and make it static. VGA_GetModeInfoList() is unused so remove it.
parent
37c0780e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
36 deletions
+30
-36
vga.c
dlls/winedos/vga.c
+30
-35
vga.h
dlls/winedos/vga.h
+0
-1
No files found.
dlls/winedos/vga.c
View file @
c772cdfc
...
...
@@ -884,41 +884,7 @@ const VGA_MODE *VGA_GetModeInfo(WORD mode)
return
NULL
;
}
const
VGA_MODE
*
VGA_GetModeInfoList
(
void
)
{
return
VGA_modelist
;
}
int
VGA_SetMode
(
WORD
mode
)
{
const
VGA_MODE
*
ModeInfo
;
/* get info on VGA mode & set appropriately */
VGA_CurrentMode
=
mode
;
ModeInfo
=
VGA_GetModeInfo
(
VGA_CurrentMode
);
/* check if mode is supported */
if
(
ModeInfo
->
Supported
)
{
FIXME
(
"Setting VGA mode %i - Supported mode - Improve reporting of missing capabilities for modes & modetypes.
\n
"
,
mode
);
}
else
{
FIXME
(
"Setting VGA mode %i - Unsupported mode - Will doubtfully work at all, but we'll try anyways.
\n
"
,
mode
);
}
/* set up graphic or text display */
if
(
ModeInfo
->
ModeType
==
TEXT
)
{
VGA_SetAlphaMode
(
ModeInfo
->
TextCols
,
ModeInfo
->
TextRows
);
}
else
{
return
VGA_SetGraphicMode
(
mode
);
}
return
0
;
/* assume all good & return zero */
}
int
VGA_SetGraphicMode
(
WORD
mode
)
static
int
VGA_SetGraphicMode
(
WORD
mode
)
{
ModeSet
par
;
int
newSize
;
...
...
@@ -1000,6 +966,35 @@ int VGA_SetGraphicMode(WORD mode)
return
par
.
ret
;
}
int
VGA_SetMode
(
WORD
mode
)
{
const
VGA_MODE
*
ModeInfo
;
/* get info on VGA mode & set appropriately */
VGA_CurrentMode
=
mode
;
ModeInfo
=
VGA_GetModeInfo
(
VGA_CurrentMode
);
/* check if mode is supported */
if
(
ModeInfo
->
Supported
)
{
FIXME
(
"Setting VGA mode %i - Supported mode - Improve reporting of missing capabilities for modes & modetypes.
\n
"
,
mode
);
}
else
{
FIXME
(
"Setting VGA mode %i - Unsupported mode - Will doubtfully work at all, but we'll try anyways.
\n
"
,
mode
);
}
/* set up graphic or text display */
if
(
ModeInfo
->
ModeType
==
TEXT
)
{
VGA_SetAlphaMode
(
ModeInfo
->
TextCols
,
ModeInfo
->
TextRows
);
}
else
{
return
VGA_SetGraphicMode
(
mode
);
}
return
0
;
/* assume all good & return zero */
}
int
VGA_GetMode
(
unsigned
*
Height
,
unsigned
*
Width
,
unsigned
*
Depth
)
{
if
(
!
lpddraw
)
return
1
;
...
...
dlls/winedos/vga.h
View file @
c772cdfc
...
...
@@ -55,7 +55,6 @@ const VGA_MODE *VGA_GetModeInfo(WORD mode);
int
VGA_SetMode
(
WORD
mode
);
/* graphics mode */
int
VGA_SetGraphicMode
(
WORD
mode
);
int
VGA_GetMode
(
unsigned
*
Height
,
unsigned
*
Width
,
unsigned
*
Depth
);
void
VGA_SetPalette
(
PALETTEENTRY
*
pal
,
int
start
,
int
len
);
void
VGA_SetColor16
(
int
reg
,
int
color
);
...
...
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