Color format RH doesn't work on Redmi K20pro
This commit is contained in:
parent
d9914c4552
commit
7db37acb36
|
@ -81,11 +81,13 @@ func set_screen_filter_alpha(alpha: float):
|
||||||
screen_filter = Color(screen_filter.r, screen_filter.g, screen_filter.b, new_alpha)
|
screen_filter = Color(screen_filter.r, screen_filter.g, screen_filter.b, new_alpha)
|
||||||
emit_signal("screen_filter_changed")
|
emit_signal("screen_filter_changed")
|
||||||
|
|
||||||
|
var radial_values_initialized := false
|
||||||
func init_radial_values():
|
func init_radial_values():
|
||||||
for i in range(Rules.COLS):
|
for i in range(Rules.COLS):
|
||||||
var angle = deg2rad(fposmod(Rules.FIRST_COLUMN_ANGLE_DEG + (i * Rules.COLS_ANGLE_DEG), 360.0))
|
var angle = deg2rad(fposmod(Rules.FIRST_COLUMN_ANGLE_DEG + (i * Rules.COLS_ANGLE_DEG), 360.0))
|
||||||
RADIAL_COL_ANGLES.push_back(angle)
|
RADIAL_COL_ANGLES.push_back(angle)
|
||||||
RADIAL_UNIT_VECTORS.push_back(Vector2(cos(angle), sin(angle)))
|
RADIAL_UNIT_VECTORS.push_back(Vector2(cos(angle), sin(angle)))
|
||||||
|
radial_values_initialized = true
|
||||||
|
|
||||||
|
|
||||||
func color_array_text(alpha: float) -> PoolColorArray:
|
func color_array_text(alpha: float) -> PoolColorArray:
|
||||||
|
|
|
@ -133,7 +133,7 @@ func update_ring_mesh_1arg(arg1):
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
var receptor_array_image := Image.new()
|
var receptor_array_image := Image.new()
|
||||||
receptor_array_image.create(8, 8, false, Image.FORMAT_RH)
|
receptor_array_image.create(8, 8, false, Image.FORMAT_RF)
|
||||||
receptor_array_image.lock()
|
receptor_array_image.lock()
|
||||||
for i in Rules.COLS:
|
for i in Rules.COLS:
|
||||||
receptor_array_image.set_pixel(i%8, i/8, Color(GameTheme.RADIAL_COL_ANGLES[i], 0.0, 0.0))
|
receptor_array_image.set_pixel(i%8, i/8, Color(GameTheme.RADIAL_COL_ANGLES[i], 0.0, 0.0))
|
||||||
|
|
|
@ -47,6 +47,7 @@ gdscript/warnings/integer_division=false
|
||||||
window/size/width=1920
|
window/size/width=1920
|
||||||
window/size/height=1080
|
window/size/height=1080
|
||||||
window/size/fullscreen=true
|
window/size/fullscreen=true
|
||||||
|
window/vsync/use_vsync=false
|
||||||
window/handheld/orientation="sensor"
|
window/handheld/orientation="sensor"
|
||||||
window/stretch/mode="2d"
|
window/stretch/mode="2d"
|
||||||
window/stretch/aspect="keep_height"
|
window/stretch/aspect="keep_height"
|
||||||
|
|
Loading…
Reference in New Issue