First post, by romek41
Hello there!
When running DOSBox in fullscreen mode, I can often notice black borders on the screen - i. e. when using resolution 640x400 in emulated PC and 640x480 in my real computer, DOSBox displays 40 black lines over and 40 black lines under the picture, instead of stretching the picture to full screen. I have decided to correct this, using OpenGL for display. The result of my work (modified sdlmain.cpp from DOSBox 0.60 - if you want to compile DOSBox with it, then you must also link executable with OpenGL, '-lGL' on Linux) is in the attachment. But there are some problems with this code:
1. It does not work with threaded video display (segfaults - I do not know why).
2. It displays a white, one pixel wide border around the display when switched to fullscreen.
Does anyone know how to fix them? I am newbie on OpenGL, so I would be very grateful for help...
Also note, that:
1. In actual stage it shows fullscreen display at 1024x768 resolution (I'm going to change this behaviour in the near future).
2. It will be really slow if you run it under plain Mesa, or Micro$oft software OpenGL. To achieve reasonable performance you will need 3D accelerator with hardware OpenGL support.
3. It won't work at all, if your OpenGL cannot use large textures.
That's it for now. I hope I will find enough time to complete this code...