Re #39 Vertical 2-way split screen on wide screens/windows
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2803 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 7b4b5ebf724be69d4936a1eddfdb4045c85d2f9f Former-commit-id: b0c9ff8d23d9ba0bf0bc135ba73f7e513728bbf5
This commit is contained in:
parent
3edd2b863e
commit
a3070116bd
1 changed files with 13 additions and 4 deletions
|
@ -127,10 +127,19 @@ grAdaptScreenSize(void)
|
|||
grScreens[3]->deactivate();
|
||||
break;
|
||||
case 2:
|
||||
// Top half of the window
|
||||
grScreens[0]->activate(grWinx, grWiny + grWinh / 2, grWinw, grWinh / 2);
|
||||
// Bottom half of the window
|
||||
grScreens[1]->activate(grWinx, grWiny, grWinw, grWinh / 2);
|
||||
// Check which way to split, incase of wide screen/2 monitor setup.
|
||||
if (grWinw >= 2 * grWinh) {
|
||||
// Left half of the window
|
||||
grScreens[0]->activate(grWinx, grWiny, grWinw / 2, grWinh);
|
||||
// Rigth half of the window
|
||||
grScreens[1]->activate(grWinx + grWinw / 2, grWiny, grWinw / 2, grWinh);
|
||||
} else {
|
||||
// Top half of the window
|
||||
grScreens[0]->activate(grWinx, grWiny + grWinh / 2, grWinw, grWinh / 2);
|
||||
// Bottom half of the window
|
||||
grScreens[1]->activate(grWinx, grWiny, grWinw, grWinh / 2);
|
||||
}
|
||||
|
||||
grScreens[2]->deactivate();
|
||||
grScreens[3]->deactivate();
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue