RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    DOSBox-X - screen size

    Scheduled Pinned Locked Moved Help and Support
    dosboxdosbox-xscreen size
    5 Posts 2 Posters 1.3k Views
    Loading More Posts
    • 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
      TedMaul
      last edited by

      Hello, I've been trying the solutions suggested here for the problem of having a small DOSBox screen without being able to expand it to meet the size of my monitor (in this case, a television).

      My .conf file looks like this at the moment:

      [sdl]
      
      fullscreen=true
      fullresolution=1080x720
      windowresolution=1080x720
      output=ddraw
      
      [dosbox]
      title=Windows 95
      memsize=480
      a20=mask
      
      [video]
      vmemsize=8
      vesa modelist width limit=0
      vesa modelist height limit=0
      
      [dos]
      # Set 'ver=7.1' if using Win95 OSR2 (95B) or later
      ver=7.1
      hard drive data rate limit=0
      
      [cpu]
      cputype=pentium_mmx
      core=normal
      
      [sblaster]
      sbtype=sb16vibra
      
      [fdc, primary]
      int13fakev86io=true
      
      [ide, primary]
      int13fakeio=true
      int13fakev86io=true
      
      [ide, secondary]
      int13fakeio=true
      int13fakev86io=true
      cd-rom insertion delay=4000
      
      [render]
      scaler=normal3x
      aspect=true
      
      [autoexec]
      

      This has managed to centre the image, but it won't go any larger no matter which dimensions I change for fullresolution.

      I have also tried adding a "dosbox-x" section to the emulators.cfg in opt/retropie/configs (it is in a folder for an additional system I added for Windows 3.x/9x systems) but this hasn't done a lot.

      Is there a way of adapting my current shell script that launches DOSBox-X to allow it to launch an XINIT as well, as the solution suggested? Currently it says this:

      #!/bin/bash
      sudo /home/pi/dosbox-x/src/dosbox-x -conf "/opt/retropie/configs/pc/TEST98.conf"
      

      Other than that, are there any suggestions?
      Thank in advance for any pointers.

      Additional info:
      Raspberry Pi 4B, running RetroPie 4.7.1, built from premade image on RetroPie website
      Standard power supply

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by mitu

        If you've defined your own dosbox-x entry in emulators.cfg, you just need to prefix the emulator command with XINIT: to make it use xorg to launch:

        #regular entry 
        dosbox-x = '/home/pi/launch-dosbox-x.sh'
        # start with Xorg
        dosbox-x= 'XINIT:/home/pi/lanch-dosbox-x.sh'
        

        Also, remove the sudo, it's useless and not recommended.

        If you wish to try without xorg, you should make sure Dosbox-X is compiled with SDL2 and not SDL1, it should behave better on the Pi4.

        T 1 Reply Last reply Reply Quote 1
        • T
          TedMaul @mitu
          last edited by

          @mitu Thanks for replying so quickly - I've added those lines in emulators.cfg in both /opt/retropie/configs/pc and /opt/retropie/configs/windows but haven't seen a difference yet, is there a way of telling if xorg has launched?

          dosbox = "bash /home/pi/RetroPie/roms/pc/+Start\ DOSBox.sh %ROM%"
          default = "dosbox"
          dosbox-sdl2 = "bash /home/pi/RetroPie/roms/pc/+Start\ DOSBox-SDL2.sh %ROM%"
          lr-dosbox-pure = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-dosbox-pure/dosbox_pure_libretro.so --config /opt/retropie/configs/pc/retroarch.cfg %ROM%"
          dosbox-x = "XINIT:/home/pi/RetroPie/roms/pc/+DOSBox-X.sh"
          

          Also it appears to have compiled with SDL1; how could I remedy this? I think I initially installed it from terminal.
          Thanks for your help!

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @TedMaul
            last edited by

            @tedmaul said in DOSBox-X - screen size:

            is there a way of telling if xorg has launched?

            You can check /dev/shm/runcommand.log and see if xinit was used to launch your script.

            Also it appears to have compiled with SDL1; how could I remedy this?

            If you manually compiled it, then there's a build script that compiles dosbox-x with SDL2 support - build-debug-sdl2.

            T 1 Reply Last reply Reply Quote 1
            • T
              TedMaul @mitu
              last edited by

              @mitu thanks,it looks like xinit wasn't launching but in any case changing to SDL2 has made it much better! Much appreciated.

              1 Reply Last reply Reply Quote 0
              • T TedMaul referenced this topic on
              • First post
                Last post

              Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

              Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.