zephr/os/windows: WIP event handling + dpi and window resolution fixes

This commit is contained in:
2024-01-26 01:32:54 +02:00
committed by Illusion
parent 5bc58af47f
commit 5a45c9f4dd
2 changed files with 35 additions and 8 deletions
-1
View File
@@ -334,7 +334,6 @@ draw_text_batch :: proc(batch: ^GlyphInstanceList) {
get_glyph_instance_list_from_text :: proc(text: string, font_size: u32, constraints: UiConstraints, color: Color, alignment: Alignment) -> GlyphInstanceList {
constraints := constraints
// TODO: this use_shader might be redundant
use_shader(font_shader)
text_color := Vec4{ cast(f32)color.r / 255, cast(f32)color.g / 255, cast(f32)color.b / 255, cast(f32)color.a / 255 }