mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-22 18:39:46 +00:00
Fix black frames of the simple window and rename its setting
Without the shadow and the resize border composeFrame() only forced the alpha channel, so the buffer the driver reallocated after a size change was presented as it is, which showed up as a black frame on every resize step. The content is now always painted from the cache and only the shadow itself is skipped when there are no margins. The setting is named simple-window and means the opposite of the previous shadow-and-border: it is off by default, so the window keeps its shadow and the outer border for resizing.
This commit is contained in:
parent
ab7f542d61
commit
27a58b584e
6 changed files with 19 additions and 18 deletions
|
|
@ -73,8 +73,8 @@ function on_open()
|
|||
"display.compact-window-bar.tooltip"
|
||||
)
|
||||
create_checkbox(
|
||||
"display.window-shadow", "Window Shadow",
|
||||
"display.window-shadow.tooltip"
|
||||
"display.simple-window", "Simple Window",
|
||||
"display.simple-window.tooltip"
|
||||
)
|
||||
create_checkbox(
|
||||
"display.live-resize", "Live Window Resize",
|
||||
|
|
|
|||
|
|
@ -119,10 +119,10 @@ settings.Clouds quality=Качество облаков
|
|||
settings.Acoustic effects=Акустические эффекты
|
||||
settings.Microphone access=Доступ к микрофону
|
||||
settings.Narrow Window Bar=Узкая шапка окна
|
||||
settings.Window Shadow=Тень окна
|
||||
settings.Simple Window=Простое окно
|
||||
settings.Live Window Resize=Живой ресайз окна
|
||||
settings.display.compact-window-bar.tooltip=Шапка окна высотой 24 px вместо 48 px
|
||||
settings.display.window-shadow.tooltip=Тень вокруг окна и внешняя область для изменения размера (без неё окно рисуется упрощённо)
|
||||
settings.display.simple-window.tooltip=Без тени и внешней рамки ресайза
|
||||
settings.display.live-resize.tooltip=Перерисовывать содержимое окна при изменении размера (выключено — последний кадр растягивается)
|
||||
|
||||
# Управление
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue