distinguish between 'defined' and 'declared'
This commit is contained in:
parent
b1c8461a3b
commit
dd806cafa0
36 changed files with 155 additions and 96 deletions
|
|
@ -333,11 +333,5 @@ proc VERSION*(X: var sdl.Tversion) =
|
|||
X.patch = PATCHLEVEL
|
||||
|
||||
|
||||
when not (defined(Workaround_RenderText_Solid)):
|
||||
proc RenderText_Solid*(font: PFont, text: cstring, fg: TColor): PSurface{.
|
||||
cdecl, importc: "TTF_RenderText_Solid", dynlib: ttfLibName.}
|
||||
else:
|
||||
proc RenderText_Solid(font: PFont, text: cstring, fg: TColor): PSurface =
|
||||
var Black: TColor # initialized to zero
|
||||
result = RenderText_Shaded(font, text, fg, Black)
|
||||
|
||||
proc RenderText_Solid*(font: PFont, text: cstring, fg: TColor): PSurface{.
|
||||
cdecl, importc: "TTF_RenderText_Solid", dynlib: ttfLibName.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue