-1

When dealing with Vesa (version 2) I can detect if its available, get all the available resolutions, but when it comes to setting the resolution... I am able to change to 1024x768 (32bpp) but then the screen is just blank... am testing it on VirtualBox...

After setting the mode, is there anything else am supposed to do?

starblue
  • 55,348
  • 14
  • 97
  • 151
Fredrick
  • 513
  • 4
  • 17
  • see [Display an array of color in C](https://stackoverflow.com/a/21699076/2521214) and look for C++ VESA example you just need to fill the VRAM with some image data ... – Spektre Aug 30 '17 at 10:39

1 Answers1

4

Did you actually set any pixels on? It's possible the memory is zeroed out so all you see is an all black screen.

shoosh
  • 76,898
  • 55
  • 205
  • 325
  • no all I did was just, change to the mode... it clears all my text and printf no more works – Fredrick Sep 20 '09 at 13:19
  • 1
    ... printf works only in text mode. If you want something on the screen in vesa mode you need to draw some pixels manually. On a different note, why the hell are you mocking around with DOS? – shoosh Sep 20 '09 at 16:12
  • A blank screen is normal after setting the video mode. what you have to do know is to map the address (if you have paging enabled) and then just write to that address – user69969 Nov 22 '14 at 13:56