home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 7104 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.4 KB

  1. 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+
  2. From: tn0s+@andrew.cmu.edu (Timothy L. Nali)
  3. Newsgroups: comp.os.linux
  4. Subject: Problem with new vgalib
  5. Message-ID: <ceSB_0G00WB4Qg04AD@andrew.cmu.edu>
  6. Date: 30 Jul 92 21:41:20 GMT
  7. Organization: Sophomore, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
  8. Lines: 32
  9.  
  10.  
  11. Hi,
  12.  
  13. I'm trying to make a GIF viewer using the vgalib and have run into a
  14. problem. I can't get vga_drawscanline to work right.  It just puts
  15. garbage on the screen.  Here's what I tried:
  16.  
  17.     unsigned short pixels[640];
  18.     vga_drawscanline(LINE,(char)pixels);
  19.  
  20. However, the following works fine:
  21.  
  22.     int x=0;
  23.     while (x<640) {
  24.         vga_setcolor(pixel[x]);
  25.         vga_drawpixel(x,LINE);
  26.         x++;
  27.     }
  28.  
  29. Could some enlightened soul please tell me what I'm doing wrong?
  30.  
  31. BYW, the GIF viewer is coming along great.  The only two problems I'm
  32. having are the colormap is coming out right, and only every other pixel
  33. is being displayed.  I'm using code from wuarchive.wustl.edu in
  34. /mirrors4/msdos/gifs/gif-srcs.zip to decode the gif.  Any help would be
  35. appreciated.
  36.  
  37.  
  38. _____________________________________________________________________________
  39.  
  40.  Tim Nali            \  "We are the music makers, and we are the dreamers of
  41.  tn0s@andrew.cmu.edu  \   the dreams" -Willy Wonka and the Chocolate Factory
  42.