aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/vesa/screencpy.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-13 22:37:33 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-13 22:37:33 -0800
commit545ef8479f39a162be3d37ac1253bbaa394e9681 (patch)
treef69314a56bb7901a908f1cbd72d2755ca5a26061 /com32/lib/sys/vesa/screencpy.c
parent0fa01cf03cfd6274518d82dfd0b5fc12ae6c4e48 (diff)
downloadsyslinux.git-545ef8479f39a162be3d37ac1253bbaa394e9681.tar.gz
syslinux.git-545ef8479f39a162be3d37ac1253bbaa394e9681.tar.xz
syslinux.git-545ef8479f39a162be3d37ac1253bbaa394e9681.zip
VESA: Minor cleanupssyslinux-3.62-pre6
Minor cleanups for clarity
Diffstat (limited to 'com32/lib/sys/vesa/screencpy.c')
-rw-r--r--com32/lib/sys/vesa/screencpy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/com32/lib/sys/vesa/screencpy.c b/com32/lib/sys/vesa/screencpy.c
index 779fe5df..4972eea7 100644
--- a/com32/lib/sys/vesa/screencpy.c
+++ b/com32/lib/sys/vesa/screencpy.c
@@ -80,13 +80,14 @@ static void set_window_pos(size_t win_pos)
{
static com32sys_t ireg;
+ wi.win_pos = win_pos;
+
if (wi.win_num < 0)
- return;
+ return; /* This should never happen... */
ireg.eax.w[0] = 0x4F05;
ireg.ebx.b[0] = wi.win_num;
ireg.edx.w[0] = win_pos >> wi.win_gshift;
- wi.win_pos = win_pos;
__intcall(0x10, &ireg, NULL);
}