diff options
author | Araq <rumpf_a@web.de> | 2014-08-11 20:38:28 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-08-11 20:38:28 +0200 |
commit | dd806cafa0193acb9e79fdd47ec6810da3c48272 (patch) | |
tree | b42f7aacdd844e9402a3308e363f71e14db8b78a /lib/wrappers | |
parent | b1c8461a3b738cb4383b2e23ba24f36960a8604c (diff) | |
download | Nim-dd806cafa0193acb9e79fdd47ec6810da3c48272.tar.gz |
distinguish between 'defined' and 'declared'
Diffstat (limited to 'lib/wrappers')
-rw-r--r-- | lib/wrappers/sdl/sdl_ttf.nim | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/wrappers/sdl/sdl_ttf.nim b/lib/wrappers/sdl/sdl_ttf.nim index f501e31d8..45247df4d 100644 --- a/lib/wrappers/sdl/sdl_ttf.nim +++ b/lib/wrappers/sdl/sdl_ttf.nim @@ -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.} |