Thread: Point Drawing

  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.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    In today's lesson - pressing the review button before pressing the post button

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Posting in the right forum is in next week's advanced course

  4. #4
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    Salem have you switched careers? Nvere knew you were into primary education

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    My new book
    Janet and John write a C compiler

  6. #6
    Deleting... VOX's Avatar
    Join Date
    Oct 2004
    Location
    VA
    Posts
    94
    Sorry what forum did I post this in? I got the damn code in the window now, you happy?
    Last edited by VOX; 11-18-2004 at 06:26 PM.

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Why are you still messing with this old tech stuff when there are graphics libraries which are
    - faster
    - higher resolution
    - more colours
    - have more features in the API
    - portable to other platforms

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