-scaler command line option.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@829
This commit is contained in:
parent
5db04ccbbe
commit
c0ddbe1da3
1 changed files with 6 additions and 1 deletions
|
@ -378,7 +378,12 @@ void RENDER_Init(Section * sec) {
|
|||
render.shot.dir=section->Get_string("snapshots");
|
||||
KEYBOARD_AddEvent(KBD_f5,KBD_MOD_CTRL,EnableScreenShot);
|
||||
#endif
|
||||
const char * scaler=section->Get_string("scaler");
|
||||
const char * scaler;std::string cline;
|
||||
if (control->cmdline->FindString("-scaler",cline,false)) {
|
||||
scaler=cline.c_str();
|
||||
} else {
|
||||
scaler=section->Get_string("scaler");
|
||||
}
|
||||
if (!strcasecmp(scaler,"none")) render.op.want_type=OP_None;
|
||||
else if (!strcasecmp(scaler,"scale2x")) render.op.want_type=OP_Scale2x;
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue