home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!tn0s+
- From: tn0s+@andrew.cmu.edu (Timothy L. Nali)
- Newsgroups: comp.os.linux
- Subject: Problem with new vgalib
- Message-ID: <ceSB_0G00WB4Qg04AD@andrew.cmu.edu>
- Date: 30 Jul 92 21:41:20 GMT
- Organization: Sophomore, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
- Lines: 32
-
-
- Hi,
-
- I'm trying to make a GIF viewer using the vgalib and have run into a
- problem. I can't get vga_drawscanline to work right. It just puts
- garbage on the screen. Here's what I tried:
-
- unsigned short pixels[640];
- vga_drawscanline(LINE,(char)pixels);
-
- However, the following works fine:
-
- int x=0;
- while (x<640) {
- vga_setcolor(pixel[x]);
- vga_drawpixel(x,LINE);
- x++;
- }
-
- Could some enlightened soul please tell me what I'm doing wrong?
-
- BYW, the GIF viewer is coming along great. The only two problems I'm
- having are the colormap is coming out right, and only every other pixel
- is being displayed. I'm using code from wuarchive.wustl.edu in
- /mirrors4/msdos/gifs/gif-srcs.zip to decode the gif. Any help would be
- appreciated.
-
-
- _____________________________________________________________________________
-
- Tim Nali \ "We are the music makers, and we are the dreamers of
- tn0s@andrew.cmu.edu \ the dreams" -Willy Wonka and the Chocolate Factory
-