From edf071903d33f73e0dc642bbdffc1e868901e632 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Thu, 26 Jun 2025 17:51:57 +0200 Subject: [PATCH] sdl3/ttf: remove #by_ptr usage with opaque Font Fixes #5278 --- vendor/sdl3/ttf/sdl3_ttf.odin | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/vendor/sdl3/ttf/sdl3_ttf.odin b/vendor/sdl3/ttf/sdl3_ttf.odin index ea71cf776..9f6a9ba4a 100644 --- a/vendor/sdl3/ttf/sdl3_ttf.odin +++ b/vendor/sdl3/ttf/sdl3_ttf.odin @@ -150,42 +150,42 @@ foreign lib { GetFontDPI :: proc(font: ^Font, hdpi: ^c.int, vdpi: ^c.int) -> bool --- SetFontStyle :: proc(font: ^Font, style: FontStyleFlags) --- - GetFontStyle :: proc(#by_ptr font: Font) -> FontStyleFlags --- + GetFontStyle :: proc(font: ^Font) -> FontStyleFlags --- SetFontOutline :: proc(font: ^Font, outline: c.int) -> bool --- - GetFontOutline :: proc(#by_ptr font: Font) -> c.int --- + GetFontOutline :: proc(font: ^Font) -> c.int --- SetFontHinting :: proc(font: ^Font, hinting: Hinting) --- - GetFontHinting :: proc(#by_ptr font: Font) -> Hinting --- + GetFontHinting :: proc(font: ^Font) -> Hinting --- GetNumFontFaces :: proc(font: ^Font) -> c.int --- SetFontSDF :: proc(font: ^Font, enabled: bool) -> bool --- - GetFontSDF :: proc(#by_ptr font: Font) -> bool --- + GetFontSDF :: proc(font: ^Font) -> bool --- - GetFontWeight :: proc(#by_ptr font: Font) -> c.int --- + GetFontWeight :: proc(font: ^Font) -> c.int --- SetFontWrapAlignment :: proc(font: ^Font, align: HorizontalAlignment) --- - GetFontWrapAlignment :: proc(#by_ptr font: Font) -> HorizontalAlignment --- + GetFontWrapAlignment :: proc(font: ^Font) -> HorizontalAlignment --- - GetFontHeight :: proc(#by_ptr font: Font) -> c.int --- - GetFontAscent :: proc(#by_ptr font: Font) -> c.int --- - GetFontDescent :: proc(#by_ptr font: Font) -> c.int --- + GetFontHeight :: proc(font: ^Font) -> c.int --- + GetFontAscent :: proc(font: ^Font) -> c.int --- + GetFontDescent :: proc(font: ^Font) -> c.int --- SetFontLineSkip :: proc(font: ^Font, lineskip: c.int) --- - GetFontLineSkip :: proc(#by_ptr font: Font) -> c.int --- + GetFontLineSkip :: proc(font: ^Font) -> c.int --- SetFontKerning :: proc(font: ^Font, enabled: bool) --- - GetFontKerning :: proc(#by_ptr font: Font) -> bool --- + GetFontKerning :: proc(font: ^Font) -> bool --- - FontIsFixedWidth :: proc(#by_ptr font: Font) -> bool --- - FontIsScalable :: proc(#by_ptr font: Font) -> bool --- + FontIsFixedWidth :: proc(font: ^Font) -> bool --- + FontIsScalable :: proc(font: ^Font) -> bool --- - GetFontFamilyName :: proc(#by_ptr font: Font) -> cstring --- - GetFontStyleName :: proc(#by_ptr font: Font) -> cstring --- + GetFontFamilyName :: proc(font: ^Font) -> cstring --- + GetFontStyleName :: proc(font: ^Font) -> cstring --- SetFontDirection :: proc(font: ^Font, direction: Direction) -> bool --- - GetFontDirection :: proc(#by_ptr font: Font) -> Direction --- + GetFontDirection :: proc(font: ^Font) -> Direction --- StringToTag :: proc(string: cstring) -> u32 --- TagToString :: proc(tag: u32, string: [^]c.char, size: c.size_t) ---