Point Drawing

This is a discussion on Point Drawing within the Tech Board forums, part of the Community Boards category; I was searching for threads on DOS graphics and came across a thread about someone wanting to put DOS into ...

  1. #1
    VOX
    VOX is offline
    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 05:24 PM.

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

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

  4. #4
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Location
    Mt. Prospect, IL
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    My new book
    Janet and John write a C compiler

  6. #6
    VOX
    VOX is offline
    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 05:26 PM.

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    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, 04:34 PM
  2. Classes & Collections
    By Max_Payne in forum C++ Programming
    Replies: 7
    Last Post: 12-11-2007, 12:06 PM
  3. floating point binary program, need help
    By ph34r me in forum C Programming
    Replies: 4
    Last Post: 11-10-2004, 06:10 AM
  4. overloading operator help
    By syrel in forum C++ Programming
    Replies: 8
    Last Post: 09-30-2004, 10:49 AM
  5. Abstract class problem
    By VanJay011379 in forum C++ Programming
    Replies: 9
    Last Post: 07-31-2002, 01:30 PM

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