Vga

This is a discussion on Vga within the C Programming forums, part of the General Programming Boards category; Hi all :-) Im using Borland C\C++ 5.5 compiler and I am woundering can anyone now and give me a ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    3

    Vga

    Hi all :-)
    Im using Borland C\C++ 5.5 compiler and I am woundering can anyone now and give me a idea or even the code to setup the VGA color for my programm. I hope someone can help? Your fraind,
    Alexander :-)

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    22

    Thumbs up vga...

    apuschumann,

    -> give me a idea or even the code to setup the VGA color for
    -> my program.

    u have to access directly to the vga memory cell.
    it depends upon your vga card.
    so, first detect your vga and then try to access that part.

    good luck.
    thanx...
    take care...
    Jackie

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Code:
    void setMode ( unsigned char mode )
    {
      union REGS uregs;
      uregs.h.ah = 0x00;
      ruegs.h.al = mode;
      int86 ( 0x10, &uregs, &uregs );
    }
    .
    .
    .
    setMode ( 0x13 );
    Will it work? It depends on your system.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. VGA to TV
    By psychopath in forum Tech Board
    Replies: 6
    Last Post: 01-05-2008, 07:18 PM
  2. Patch not working for Police Quest 1 VGA
    By sean in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 08-05-2004, 08:01 AM
  3. Small VGA unit for DOS games
    By VirtualAce in forum Game Programming
    Replies: 1
    Last Post: 10-17-2003, 12:08 AM
  4. Dev-C++ VGA mode problems...
    By Ace Bowers in forum C++ Programming
    Replies: 9
    Last Post: 07-17-2003, 09:39 AM
  5. VGA Programming
    By JoshG in forum Game Programming
    Replies: 1
    Last Post: 08-01-2002, 04:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21