Hi All,
I’m using Ubuntu 130.4 with SDL 2. I need to run on multiple monitors. I’ve got my code up and running however I’m unable to screens to run correctly in full screen mode.
I’m running dula monitors on ATI catalyst set up for 2 screens, so it shows multi display desktop with 2 displays. Xorg.conf shows two moitors display with 1920x1080
Code:
Section "Monitor"
Identifier "0-DFP2"
Option “VendorName” "ATI Proprietary Driver"
Option “ModelName” "Generic Autodetecting Monitor"
Option “DPMS” "true"
Option “PreferredMode” "1920x1080"
Option “TargetRefresh” "60"
Option “Position” "0 0"
Option “Rotate” "normal"
Option “Disable” "false"
EndSection
Section "Monitor"
Identifier "0-CRT1"
Option “VendorName” "ATI Proprietary Driver"
Option “ModelName” "Generic Autodetecting Monitor"
Option “DPMS” "true"
Option “TargetRefresh” "60"
Option “Position” "1920 0"
Option “Rotate” "normal"
Option “Disable” "false"
Option “PreferredMode” "1920x1080"
EndSection
and a single display at
Code:
Section "Screen"
Identifier "amdcccle-Screen[0]-0"
Device "amdcccle-Device[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Virtual 3840 1920
Depth 24
EndSubSection
EndSection
So I set two windows up one to draw to location 0,0 the next 1920,0. In windowed mode this works great. But I want to run in full screen mode.
So first I tried the SDL_WINDOW_FULLSCREEN_DESKTOP flag,
Code:
screen[ screen_counter ]->window = SDL_CreateWindow( screen[ screen_counter ]->video_screen.screen_name.c_str( ),
screen_counter * 1920,0,
screen[ screen_counter ]->video_screen.width, screen[ screen_counter ]->video_screen.length,
SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_FULLSCREEN_DESKTOP );
However this just spans the last screen drawn across the two screens with big black boarders on the right of one screen left of the other.
Next I tried SDL_WINDOW_BORDERLESS with windows having resolutions matching each screen, 1920x1080
Code:
screen[ screen_counter ]->window = SDL_CreateWindow( screen[ screen_counter ]->video_screen.screen_name.c_str( ),
screen_counter * 1920,0,
screen[ screen_counter ]->video_screen.width, screen[ screen_counter ]->video_screen.length,
SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_BORDERLESS );
This almost works however the Ubuntu OS bar ( don’t know what it’s called ) is still draw at the top of the screen, showin clock, wireless connection ect.
What flags do I need to set to get it full screen (os bar is gone ) to two monitors but without the OS bar?
Thanks I’m a bit stuck on this one