1
0
Fork 0

-scaler command line option.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@829
This commit is contained in:
Sjoerd van der Berg 2003-03-28 23:38:48 +00:00
parent 5db04ccbbe
commit c0ddbe1da3

View file

@ -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 {