summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2000-10-28 10:59:21 +0000
committernyan <nyan@FreeBSD.org>2000-10-28 10:59:21 +0000
commit18652ae093f861545f7c487b01b5b360f44c8195 (patch)
tree6ba170cf4ca265479d5c5140ff2aec1dccb4a069 /sys
parent6f69682320cc03dfd7dd045d9ca325496027d955 (diff)
downloadFreeBSD-src-18652ae093f861545f7c487b01b5b360f44c8195.zip
FreeBSD-src-18652ae093f861545f7c487b01b5b360f44c8195.tar.gz
Removed extra calculation for X position (PC-98 only).
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fb/splash_bmp.c1
-rw-r--r--sys/modules/splash/bmp/splash_bmp.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/fb/splash_bmp.c b/sys/dev/fb/splash_bmp.c
index e3db76d..09251b9 100644
--- a/sys/dev/fb/splash_bmp.c
+++ b/sys/dev/fb/splash_bmp.c
@@ -274,7 +274,6 @@ bmp_SetPix(BMP_INFO *info, int x, int y, u_char val)
switch(info->sdepth) {
#ifdef PC98
case 4:
- x += (info->swidth - info->width) / 2;
sofs += (x >> 3);
bofs = x & 0x7; /* offset within byte */
diff --git a/sys/modules/splash/bmp/splash_bmp.c b/sys/modules/splash/bmp/splash_bmp.c
index e3db76d..09251b9 100644
--- a/sys/modules/splash/bmp/splash_bmp.c
+++ b/sys/modules/splash/bmp/splash_bmp.c
@@ -274,7 +274,6 @@ bmp_SetPix(BMP_INFO *info, int x, int y, u_char val)
switch(info->sdepth) {
#ifdef PC98
case 4:
- x += (info->swidth - info->width) / 2;
sofs += (x >> 3);
bofs = x & 0x7; /* offset within byte */
OpenPOWER on IntegriCloud