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
f68017b8
Commit
f68017b8
authored
Aug 29, 2003
by
Jukka Heinonen
Committed by
Alexandre Julliard
Aug 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow application to use VGA window that overlaps framebuffer only
partially.
parent
528e6e98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
9 deletions
+32
-9
vga.c
dlls/winedos/vga.c
+32
-9
No files found.
dlls/winedos/vga.c
View file @
f68017b8
...
...
@@ -363,6 +363,32 @@ typedef struct {
int
ret
;
}
ModeSet
;
/**********************************************************************
* VGA_SyncWindow
*
* Copy VGA window into framebuffer (if argument is TRUE) or
* part of framebuffer into VGA window (if argument is FALSE).
*/
static
void
VGA_SyncWindow
(
BOOL
target_is_fb
)
{
int
size
=
VGA_WINDOW_SIZE
;
/* Window does not overlap framebuffer. */
if
(
vga_fb_window
>=
vga_fb_size
)
return
;
/* Check if window overlaps framebuffer only partially. */
if
(
vga_fb_size
-
vga_fb_window
<
VGA_WINDOW_SIZE
)
size
=
vga_fb_size
-
vga_fb_window
;
if
(
target_is_fb
)
memmove
(
vga_fb_data
+
vga_fb_window
,
VGA_WINDOW_START
,
size
);
else
memmove
(
VGA_WINDOW_START
,
vga_fb_data
+
vga_fb_window
,
size
);
}
static
void
WINAPI
VGA_DoExit
(
ULONG_PTR
arg
)
{
VGA_DeinstallTimer
();
...
...
@@ -603,17 +629,15 @@ void VGA_SetWindowStart(int start)
if
(
vga_fb_window
==
-
1
)
FIXME
(
"Remove VGA memory emulation.
\n
"
);
else
if
(
vga_fb_window
+
VGA_WINDOW_SIZE
<
vga_fb_size
)
memmove
(
vga_fb_data
+
vga_fb_window
,
VGA_WINDOW_START
,
VGA_WINDOW_SIZE
);
else
VGA_SyncWindow
(
TRUE
);
vga_fb_window
=
start
;
if
(
vga_fb_window
==
-
1
)
FIXME
(
"Install VGA memory emulation.
\n
"
);
else
if
(
vga_fb_window
+
VGA_WINDOW_SIZE
<
vga_fb_size
)
memmove
(
VGA_WINDOW_START
,
vga_fb_data
+
vga_fb_window
,
VGA_WINDOW_SIZE
);
else
VGA_SyncWindow
(
FALSE
);
LeaveCriticalSection
(
&
vga_lock
);
}
...
...
@@ -925,9 +949,8 @@ static void VGA_Poll_Graphics(void)
/*
* Synchronize framebuffer contents.
*/
if
(
vga_fb_window
!=
-
1
&&
vga_fb_window
+
VGA_WINDOW_SIZE
<
vga_fb_size
)
memmove
(
vga_fb_data
+
vga_fb_window
,
VGA_WINDOW_START
,
VGA_WINDOW_SIZE
);
if
(
vga_fb_window
!=
-
1
)
VGA_SyncWindow
(
TRUE
);
/*
* Double VGA framebuffer (320x200 -> 640x400), if needed.
...
...
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