Browse Source

sdl3/ttf: remove #by_ptr usage with opaque Font

Fixes #5278
Laytan Laats 1 month ago
parent
commit
edf071903d
1 changed files with 16 additions and 16 deletions
  1. 16 16
      vendor/sdl3/ttf/sdl3_ttf.odin

+ 16 - 16
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) ---