diff options
author | pixel <pixel> | 2007-06-23 18:20:46 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-06-23 18:20:46 +0000 |
commit | cbc9950e48dc30900aba94ff9d079d8f3bdc7d32 (patch) | |
tree | 34ccafae42248d71f26b139f3afd08aaf27c0547 | |
parent | f105764b8c77364608cb5a60c81aab7af414b60a (diff) |
Adding Error() support in FTGL.
-rw-r--r-- | lib/LuaFTGL.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/LuaFTGL.cc b/lib/LuaFTGL.cc index 851ccb3..a5b2a8d 100644 --- a/lib/LuaFTGL.cc +++ b/lib/LuaFTGL.cc @@ -213,7 +213,9 @@ int sLua_EncapFTFont::EncapFTFont_proceed(Lua * L, int n, EncapFTFont * obj, int f->Render(L->tostring(2).to_charp()); break; case FTFONT_ERROR: - r = 0; + r = 1; + L->push((lua_Number) f->Error()); + break; } return r; |