From 8e89209d0e4df913b4f407273b8a55a9c76a9ff0 Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 14 Jun 2014 19:38:14 +0100 Subject: [PATCH] Fixed some comments in l_graphics_setCanvas and _setFont --- src/graphics.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphics.c b/src/graphics.c index 56d6e44..9fa72c9 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -126,7 +126,7 @@ int l_graphics_setFont(lua_State *L) { } graphics_font = luaobj_checkudata(L, 1, LUAOBJ_TYPE_FONT); /* Remove old font from registry. This is done after we know the args are - * so that the font remains unchanged if an error occurs */ + * okay so that the font remains unchanged if an error occurs */ if (oldFont) { lua_pushlightuserdata(L, oldFont); lua_pushnil(L); @@ -151,14 +151,14 @@ int l_graphics_setCanvas(lua_State *L) { image_t *oldCanvas = graphics_canvas; if (lua_isnoneornil(L, 1)) { /* If no arguments are given we use the screen canvas, grab it from the - * registry and get its index */ + * registry and set it as the first argument */ lua_pushlightuserdata(L, &graphics_screen); lua_gettable(L, LUA_REGISTRYINDEX); lua_insert(L, 1); } graphics_canvas = luaobj_checkudata(L, 1, LUAOBJ_TYPE_IMAGE); /* Remove old canvas from registry. This is done after we know the args are - * so that the canvas remains unchanged if an error occurs */ + * okay so that the canvas remains unchanged if an error occurs */ if (oldCanvas) { lua_pushlightuserdata(L, oldCanvas); lua_pushnil(L);