Add scale support

This commit is contained in:
2026-07-20 10:23:57 +05:00
parent 53161f3f2c
commit 07bd12ee9a
13 changed files with 88 additions and 22 deletions

View File

@@ -114,6 +114,7 @@ static bool start_view(struct view *view, const char *renderer, const char *url)
struct owb_config_header config = {
.magic = OWB_CONFIG_MAGIC, .version = OWB_PROTOCOL_VERSION,
.width = width, .height = height, .fps = 20, .transparent = 0,
.zoom_percent = 100,
.hardware_acceleration = 1, .url_length = (uint32_t)strlen(url), .css_length = 0,
};
return write_all(view->control, &config, sizeof(config)) &&