Fix window sizing not working under SDL
This commit is contained in:
parent
d8cf9bd734
commit
ef15b62af1
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include "string_utils.hpp"
|
#include "string_utils.hpp"
|
||||||
|
|
||||||
|
#include <SDL.h>
|
||||||
|
|
||||||
void prism::set_domain_path(const prism::domain domain, const prism::path& path) {
|
void prism::set_domain_path(const prism::domain domain, const prism::path& path) {
|
||||||
#ifdef PLATFORM_MACOS
|
#ifdef PLATFORM_MACOS
|
||||||
domain_data[(int)domain] = replace_substring(path.string(), "{resource_dir}/", "../Resources/");
|
domain_data[(int)domain] = replace_substring(path.string(), "{resource_dir}/", "../Resources/");
|
||||||
|
@ -11,5 +13,5 @@ void prism::set_domain_path(const prism::domain domain, const prism::path& path)
|
||||||
}
|
}
|
||||||
|
|
||||||
prism::path prism::get_writeable_directory() {
|
prism::path prism::get_writeable_directory() {
|
||||||
return "";
|
return SDL_GetPrefPath("Prism", "Prism");
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue