Skip to content

Commit

Permalink
Fixed the display menu MSAA selection code so that it works on window…
Browse files Browse the repository at this point in the history
…s (hopefully).
  • Loading branch information
macsforme committed Oct 29, 2016
1 parent 95ec939 commit 9cdc6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bzflag/DisplayMenu.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void DisplayMenu::resize(int _width, int _height)
((HUDuiList*)listHUD[i++])->setIndex(BZDB.evalInt("saveEnergy"));

// multisampling
((HUDuiList*)listHUD[i++])->setIndex(BZDB.evalInt("multisample") > 0 ? (int) log2(BZDB.evalInt("multisample")) : 0);
((HUDuiList*)listHUD[i++])->setIndex(BZDB.evalInt("multisample") > 0 ? (int) (log(BZDB.eval("multisample")) / log(2.0)) : 0);
}

int DisplayMenu::gammaToIndex(float gamma)
Expand Down

0 comments on commit 9cdc6bf

Please sign in to comment.