Thread: Point Drawing

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Deleting... VOX's Avatar
    Join Date
    Oct 2004
    Location
    VA
    Posts
    94

    Point Drawing

    I was searching for threads on DOS graphics and came across a thread about someone wanting to put DOS into SVGA mode.

    Someone replied with this

    Code:
    asm
    {
    mov ax,4F02
    mov bx,mode
    les di,CRTCbufferblock
    int 10h
    }
    I don't know what to type becasue it's obvious it won't compile correctly.

    Then the author said he found out how to set the mode into svga mode with this

    Code:
    void set_mode_svga(void)
    {
    
    union REGS inregs,outregs;
    
    inregs.h.ah = 0; 
    inregs.h.al = 0x005f; // video mode to change to
    
    int86(0x10, &inregs, &outregs);
    
    }
    That works, but my pixel drawing functions don't work with that. Can someone please give me a pixel drawing function that is compatible with that function, and convert the mode function so that I can designate the mode I want in Hex? Thanks in advance;
    Last edited by VOX; 11-18-2004 at 06:24 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drawing Program
    By Max_Payne in forum C++ Programming
    Replies: 21
    Last Post: 12-21-2007, 05:34 PM
  2. Classes & Collections
    By Max_Payne in forum C++ Programming
    Replies: 7
    Last Post: 12-11-2007, 01:06 PM
  3. floating point binary program, need help
    By ph34r me in forum C Programming
    Replies: 4
    Last Post: 11-10-2004, 07:10 AM
  4. overloading operator help
    By syrel in forum C++ Programming
    Replies: 8
    Last Post: 09-30-2004, 10:49 AM