godot/core
Riteo 87cfc415a3 Add content scale stretch modes, implement integer scaling
Integer scaling is achieved (after aspect expansion) by "lying" to the
stretching code about the window's size, telling it that it's always an
integer multiple of the viewport so that it only gets stretched to an
integer factor.

This approach works with all stretch and aspect modes and doesn't
require handling for each, only requiring to "loosen up" some
self-excluding conditions (in other words, replacing some `else if`s
with just `if`s) regarding viewport offset and margin calculation (black
bars).

Includes a tiny usability change that adds a range hint for the content
scale factor between 0.5 to 8.0.

Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-08-10 19:45:47 +02:00
..
config Add content scale stretch modes, implement integer scaling 2023-08-10 19:45:47 +02:00
crypto [NET] Refactor TLS configuration. 2023-01-28 11:08:02 +01:00
debugger Cleanup unused engine code v2 2023-01-19 13:02:18 +01:00
error Fix incorrect index error macros 2023-01-22 12:23:56 +01:00
extension Add support for icons in GDExtension classes 2023-03-31 21:39:02 +02:00
input Merge pull request #73200 from 0xafbf/fix-guide-button-win 2023-04-03 15:58:36 +02:00
io Fix moving position indicator out of bounds in FileAccessMemory 2023-04-04 10:10:25 +02:00
math Fix randfn to prevent generating of nan values 2023-03-03 16:43:48 +03:00
object Fix auto-translations in editor 2023-03-22 23:57:12 +01:00
os Merge pull request #73793 from myaaaaaaaaa/init-race 2023-03-06 19:57:38 +01:00
string add hex_decode() to String 2023-04-05 19:44:00 +07:00
templates Fix PagedArray.merge_unordered() dropping pages 2023-02-16 19:58:27 -05:00
variant add hex_decode() to String 2023-04-05 19:44:00 +07:00
core_bind.cpp Add Engine::unregister_script_language and make Engine::register_script_language returns a Error 2023-02-10 19:50:24 +01:00
core_bind.h Add Engine::unregister_script_language and make Engine::register_script_language returns a Error 2023-02-10 19:50:24 +01:00
core_builders.py ci: add Python static analysis check via mypy 2022-09-30 19:03:17 +07:00
core_constants.cpp Make global scope enums accessible as types in GDScript 2023-02-19 13:00:07 -03:00
core_constants.h Make global scope enums accessible as types in GDScript 2023-02-19 13:00:07 -03:00
core_globals.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
core_globals.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
core_string_names.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
core_string_names.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
doc_data.cpp GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
doc_data.h GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
register_core_types.cpp [NET] Refactor TLS configuration. 2023-01-28 11:08:02 +01:00
register_core_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub SCons: Unify tools/target build type configuration 2022-09-26 16:31:46 +02:00
typedefs.h Fix several clang-tidy bool literal conversion warnings 2023-03-04 16:38:35 +02:00
version.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00