summary refs log tree commit diff stats
path: root/lib/wrappers
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-08-11 20:38:28 +0200
committerAraq <rumpf_a@web.de>2014-08-11 20:38:28 +0200
commitdd806cafa0193acb9e79fdd47ec6810da3c48272 (patch)
treeb42f7aacdd844e9402a3308e363f71e14db8b78a /lib/wrappers
parentb1c8461a3b738cb4383b2e23ba24f36960a8604c (diff)
downloadNim-dd806cafa0193acb9e79fdd47ec6810da3c48272.tar.gz
distinguish between 'defined' and 'declared'
Diffstat (limited to 'lib/wrappers')
-rw-r--r--lib/wrappers/sdl/sdl_ttf.nim10
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.}