Temporary fix for Display Menu Full-screen size
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7898 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: d3ac7e13571acb3d8e3722a4a79c3c64b0f52b23 Former-commit-id: 27d2c43f99ebf936043c4cd1099141901fbcfc84
This commit is contained in:
parent
707a306caf
commit
dc3374f40a
1 changed files with 13 additions and 2 deletions
|
@ -150,6 +150,9 @@ ScreenSizeVector GfScrGetSupportedSizes(int nDisplayIndex)
|
||||||
last.width = 0;
|
last.width = 0;
|
||||||
last.height = 0;
|
last.height = 0;
|
||||||
|
|
||||||
|
bounds.w = 0;
|
||||||
|
bounds.h = 0;
|
||||||
|
|
||||||
// make sure nDisplayIndex is valid (less than Number of displays)
|
// make sure nDisplayIndex is valid (less than Number of displays)
|
||||||
if(nDisplayIndex < GfScrGetAttachedDisplays())
|
if(nDisplayIndex < GfScrGetAttachedDisplays())
|
||||||
{
|
{
|
||||||
|
@ -161,7 +164,7 @@ ScreenSizeVector GfScrGetSupportedSizes(int nDisplayIndex)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GfLogError("Could not get the Display mode for Display %d \n", nDisplayIndex);
|
GfLogError("Could not get the Display mode for Display %d \n", nDisplayIndex + 1);
|
||||||
bounds.w = 0;
|
bounds.w = 0;
|
||||||
bounds.h = 0;
|
bounds.h = 0;
|
||||||
}
|
}
|
||||||
|
@ -192,10 +195,18 @@ ScreenSizeVector GfScrGetSupportedSizes(int nDisplayIndex)
|
||||||
{
|
{
|
||||||
GfLogError("Invalid Display index passed to GfScrGetSupportedSizes()\n");
|
GfLogError("Invalid Display index passed to GfScrGetSupportedSizes()\n");
|
||||||
}
|
}
|
||||||
|
// TODO Remove HACK below
|
||||||
|
// clear the vector so the only choice for Full-screen is current display mode
|
||||||
|
vecSizes.clear();
|
||||||
|
// TODO Remove HACK above
|
||||||
if(vecSizes.empty())
|
if(vecSizes.empty())
|
||||||
{
|
{
|
||||||
GfLogInfo("No supported sizes for Display .\n");
|
GfLogInfo("No supported sizes for Display .\n");
|
||||||
|
|
||||||
|
// Desperation stick the Display Bounds into the vector
|
||||||
|
last.width = bounds.w;
|
||||||
|
last.height = bounds.h;
|
||||||
|
vecSizes.push_back(last);
|
||||||
}
|
}
|
||||||
|
|
||||||
return vecSizes;
|
return vecSizes;
|
||||||
|
|
Loading…
Reference in a new issue