diff options
author | Keith Packard <keithp@keithp.com> | 2000-05-24 23:57:56 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2000-05-24 23:57:56 +0000 |
commit | 325fb002e8832a05361516bbaf19d1e8b67a3486 (patch) | |
tree | aede90ec8ae9f64e9a6f102de345f4e660588654 /hw/kdrive/src/kcmap.c | |
parent | a6d519e527a81341ad333cb25b410dfde07176ae (diff) |
Fix 640x480x60 mode, drop inb/outb on non-x86 machines
Diffstat (limited to 'hw/kdrive/src/kcmap.c')
-rw-r--r-- | hw/kdrive/src/kcmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/kdrive/src/kcmap.c b/hw/kdrive/src/kcmap.c index 76d2f1f53..c20286b9d 100644 --- a/hw/kdrive/src/kcmap.c +++ b/hw/kdrive/src/kcmap.c @@ -21,7 +21,7 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ -/* $XFree86: xc/programs/Xserver/hw/kdrive/kcmap.c,v 1.2 2000/02/23 20:29:52 dawes Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/kdrive/kcmap.c,v 1.3 2000/05/06 22:17:39 keithp Exp $ */ #include "kdrive.h" @@ -55,12 +55,12 @@ KdSetColormap (ScreenPtr pScreen, int fb) * true/direct as well as pseudo/static visuals */ - for (i = 0; i < (1 << pScreenPriv->screen->fb[i].depth); i++) + for (i = 0; i < (1 << pScreenPriv->screen->fb[fb].depth); i++) pixels[i] = i; - QueryColors (pCmap, (1 << pScreenPriv->screen->fb[i].depth), pixels, colors); + QueryColors (pCmap, (1 << pScreenPriv->screen->fb[fb].depth), pixels, colors); - for (i = 0; i < (1 << pScreenPriv->screen->fb[i].depth); i++) + for (i = 0; i < (1 << pScreenPriv->screen->fb[fb].depth); i++) { defs[i].pixel = i; defs[i].red = colors[i].red; @@ -70,7 +70,7 @@ KdSetColormap (ScreenPtr pScreen, int fb) } (*pScreenPriv->card->cfuncs->putColors) (pCmap->pScreen, fb, - (1 << pScreenPriv->screen->fb[i].depth), + (1 << pScreenPriv->screen->fb[fb].depth), defs); /* recolor hardware cursor */ |