Skip to content

Commit

Permalink
[sdl3] updated libraries.7z
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Feb 11, 2025
1 parent 5ae744d commit 39de7cd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build_scripts/generate_project_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ def main():
file_utilities.copy(Path("build_scripts") / "7z.dll", "binaries")

print("\n2. Download and extract libraries...")
library_url = 'https://www.dropbox.com/scl/fi/e9b8eiyvs69zoyarleift/libraries.7z?rlkey=5a3me7rc3os4naev2dyifjbsz&st=1amejgmw&dl=1'
library_expected_hash = '89f3dc352d1ff47b059ef1bceed2d89f5ae7989eac60666624f195363a23d85d'
library_url = 'https://www.dropbox.com/scl/fi/ecvvuvj44k35ysa3x5vb6/libraries.7z?rlkey=70lsadsc75ks5mybyupvh7msx&st=4pm8zex8&dl=1'
library_expected_hash = 'df5d09635cc98cc3569321d556257f776266f826062a48b4e3d81cfd4ba7ba8f'
library_destination = Path("third_party") / "libraries" / "libraries.7z"
#file_utilities.download_file(library_url, str(library_destination), library_expected_hash)
file_utilities.download_file(library_url, str(library_destination), library_expected_hash)
file_utilities.extract_archive(str(library_destination), str(Path("third_party") / "libraries"))

print("3. Copying required DLLs to the binary directory...")
Expand Down
4 changes: 4 additions & 0 deletions runtime/Core/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ namespace spartan
break;
case 533:
break;
case 768:
break;
case 769:
break;
case 1024:
break;
case 1027:
Expand Down
2 changes: 1 addition & 1 deletion runtime/Display/Display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ namespace spartan
SDL_free(modes);

// log display info
SP_LOG_INFO("Name: %s, Hz: %d, Gamma: %.1f, HDR: %s, max luminance: %.0f nits", GetName(), GetRefreshRate(), GetGamma(), GetHdr() ? "true" : "false", GetLuminanceMax());
SP_LOG_INFO("name: %s, hz: %.1f, gamma: %.1f, hdr: %s, max luminance: %.0f nits", GetName(), GetRefreshRate(), GetGamma(), GetHdr() ? "true" : "false", GetLuminanceMax());
}

const vector<DisplayMode>& Display::GetDisplayModes()
Expand Down
2 changes: 1 addition & 1 deletion runtime/Rendering/Renderer_Resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ namespace spartan
const string dir_font = ResourceCache::GetResourceDirectory(ResourceDirectory::Fonts) + "\\";

// load a font
uint32_t size = static_cast<uint32_t>(16 * Window::GetDpiScale()); // maintain a consistent font size across different resolutions
uint32_t size = static_cast<uint32_t>(12 * Window::GetDpiScale());
standard_font = make_shared<Font>(dir_font + "OpenSans/OpenSans-Medium.ttf", size, Color(0.9f, 0.9f, 0.9f, 1.0f));
}

Expand Down

0 comments on commit 39de7cd

Please sign in to comment.