mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-06-02 13:41:37 +00:00
add pref items for scaling
This commit is contained in:
parent
3db0cf3d0b
commit
d736cc58de
|
@ -735,8 +735,8 @@ static SDL_Surface * init_sdl_video(int width, int height, int bpp, Uint32 flags
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply anti-aliasing, if and when appropriate (usually in fullscreen)
|
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, PrefsFindBool("scale_nearest") ? "nearest" : "linear");
|
||||||
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
|
|
||||||
/*
|
/*
|
||||||
// Always use a resize-able window. This helps allow SDL to manage
|
// Always use a resize-able window. This helps allow SDL to manage
|
||||||
// transitions involving fullscreen to or from windowed-mode.
|
// transitions involving fullscreen to or from windowed-mode.
|
||||||
|
@ -852,6 +852,8 @@ static SDL_Surface * init_sdl_video(int width, int height, int bpp, Uint32 flags
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_RenderSetIntegerScale(sdl_renderer, PrefsFindBool("scale_integer") ? SDL_TRUE : SDL_FALSE);
|
||||||
|
|
||||||
return guest_surface;
|
return guest_surface;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,8 @@ prefs_desc common_prefs_items[] = {
|
||||||
{"mousewheelmode",TYPE_BOOLEAN,"Use WheelMode"},
|
{"mousewheelmode",TYPE_BOOLEAN,"Use WheelMode"},
|
||||||
{"mousewheellines",TYPE_INT32,"wheel line nb"},
|
{"mousewheellines",TYPE_INT32,"wheel line nb"},
|
||||||
{"hotkey",TYPE_INT32,false,"hotkey modifier"},
|
{"hotkey",TYPE_INT32,false,"hotkey modifier"},
|
||||||
|
{"scale_nearest",TYPE_BOOLEAN,false,"nearest neighbor scaling"},
|
||||||
|
{"scale_integer",TYPE_BOOLEAN,false,"integer scaling"},
|
||||||
{NULL, TYPE_END, false, NULL} // End of list
|
{NULL, TYPE_END, false, NULL} // End of list
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,8 @@ prefs_desc common_prefs_items[] = {
|
||||||
{"keyboardtype", TYPE_INT32, false, "hardware keyboard type"},
|
{"keyboardtype", TYPE_INT32, false, "hardware keyboard type"},
|
||||||
{"hardcursor", TYPE_BOOLEAN, false, "hardware mouse cursor"},
|
{"hardcursor", TYPE_BOOLEAN, false, "hardware mouse cursor"},
|
||||||
{"hotkey", TYPE_INT32, false, "hotkey modifier"},
|
{"hotkey", TYPE_INT32, false, "hotkey modifier"},
|
||||||
|
{"scale_nearest",TYPE_BOOLEAN,false,"nearest neighbor scaling"},
|
||||||
|
{"scale_integer",TYPE_BOOLEAN,false,"integer scaling"},
|
||||||
{NULL, TYPE_END, false, NULL} // End of list
|
{NULL, TYPE_END, false, NULL} // End of list
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user