Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. GCC & vga,bitmap.c

GCC & vga,bitmap.c

Scheduled Pinned Locked Moved C / C++ / MFC
graphicscomhelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tuan1111
    wrote on last edited by
    #1

    I write bitmap.c display bitmap > 256 color on screen But I have VGA card on board.Result bad color. How to: display bitmap > 256 color on screen ? Palette have ...color ? Struct of bitmap: Struct tagBITMAP{ Word w,h; Byte *data; Byte palette[256*3]; }BITMAP; Or answer is:1. Desktop> click fải\properties\Setting\Display:Plug & Play on intel(R) 82845G GL/GE/PE/GV Graphics Controller Color Qualtily:Hightest(32 bit) 2.I change 16 bit to 32 bit.how to do ? I write boot.asm->compiler->strip header->not copy to floppy,I copy to CD.I do it ? :sigh: Floppy is old man,not use it Help me How to:compile this code with NASM 2. --End,vietnam not register on www.osdev.org. Please,register osdev for me.Account:TUAN_OS My Mail:thoong00biet@yahoo.com.vn

    B 2 Replies Last reply
    0
    • T tuan1111

      I write bitmap.c display bitmap > 256 color on screen But I have VGA card on board.Result bad color. How to: display bitmap > 256 color on screen ? Palette have ...color ? Struct of bitmap: Struct tagBITMAP{ Word w,h; Byte *data; Byte palette[256*3]; }BITMAP; Or answer is:1. Desktop> click fải\properties\Setting\Display:Plug & Play on intel(R) 82845G GL/GE/PE/GV Graphics Controller Color Qualtily:Hightest(32 bit) 2.I change 16 bit to 32 bit.how to do ? I write boot.asm->compiler->strip header->not copy to floppy,I copy to CD.I do it ? :sigh: Floppy is old man,not use it Help me How to:compile this code with NASM 2. --End,vietnam not register on www.osdev.org. Please,register osdev for me.Account:TUAN_OS My Mail:thoong00biet@yahoo.com.vn

      B Offline
      B Offline
      Bacon Ultimate Cheeseburger
      wrote on last edited by
      #2

      General information on programming the VGA: http://www.osdever.net/FreeVGA/vga/vga.htm[^]

      I am a lean mean ground beef machine!!!

      1 Reply Last reply
      0
      • T tuan1111

        I write bitmap.c display bitmap > 256 color on screen But I have VGA card on board.Result bad color. How to: display bitmap > 256 color on screen ? Palette have ...color ? Struct of bitmap: Struct tagBITMAP{ Word w,h; Byte *data; Byte palette[256*3]; }BITMAP; Or answer is:1. Desktop> click fải\properties\Setting\Display:Plug & Play on intel(R) 82845G GL/GE/PE/GV Graphics Controller Color Qualtily:Hightest(32 bit) 2.I change 16 bit to 32 bit.how to do ? I write boot.asm->compiler->strip header->not copy to floppy,I copy to CD.I do it ? :sigh: Floppy is old man,not use it Help me How to:compile this code with NASM 2. --End,vietnam not register on www.osdev.org. Please,register osdev for me.Account:TUAN_OS My Mail:thoong00biet@yahoo.com.vn

        B Offline
        B Offline
        Bacon Ultimate Cheeseburger
        wrote on last edited by
        #3

        tuan1111 wrote:

        I write boot.asm->compiler->strip header->not copy to floppy,I copy to CD.I do it ?

        Why go to all that trouble when you can use virtualization? You can just build your OS and boot directly into it with the VM.

        I am a lean mean ground beef machine!!!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups