gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-draw.cpp
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年06月27日 17:45:49 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年06月27日 17:45:49 +0200
commit1b2fab01c5b721e793a27dd5f5e67eab65a4fd78 (patch)
tree475b9aaa3cd1693c0a83bf965e039c214274ab6b /agg-plot/lua-draw.cpp
parentf31d5249020fd59ae6f997c870efa9baac05ca05 (diff)
downloadgsl-shell-1b2fab01c5b721e793a27dd5f5e67eab65a4fd78.tar.gz
Removes all Tab characters into agg-plot to use only spaces
Diffstat (limited to 'agg-plot/lua-draw.cpp')
-rw-r--r--agg-plot/lua-draw.cpp 26
1 files changed, 13 insertions, 13 deletions
diff --git a/agg-plot/lua-draw.cpp b/agg-plot/lua-draw.cpp
index ff559d51..e8fba890 100644
--- a/agg-plot/lua-draw.cpp
+++ b/agg-plot/lua-draw.cpp
@@ -159,9 +159,9 @@ path_cmd (draw::path *p, int _cmd, struct cmd_call_stack *s)
break;
case CMD_LINE_TO:
if (ps.total_vertices() == 0)
- ps.move_to (s->f[0], s->f[1]);
+ ps.move_to (s->f[0], s->f[1]);
else
- ps.line_to (s->f[0], s->f[1]);
+ ps.line_to (s->f[0], s->f[1]);
break;
case CMD_CLOSE:
ps.close_polygon ();
@@ -193,16 +193,16 @@ agg_path_cmd (lua_State *L)
for (fc = signature; fc[0]; fc++)
{
switch (fc[0])
- {
- case 'f':
- s->f[f_count++] = gs_check_number (L, argc++, FP_CHECK_NORMAL);
- break;
- case 'b':
- if (lua_isboolean (L, argc))
- s->b[b_count++] = lua_toboolean (L, argc++);
- else
- return luaL_error (L, "expected boolean for argument #%i", argc);
- }
+ {
+ case 'f':
+ s->f[f_count++] = gs_check_number (L, argc++, FP_CHECK_NORMAL);
+ break;
+ case 'b':
+ if (lua_isboolean (L, argc))
+ s->b[b_count++] = lua_toboolean (L, argc++);
+ else
+ return luaL_error (L, "expected boolean for argument #%i", argc);
+ }
}
pthread_mutex_lock (agg_mutex);
@@ -224,7 +224,7 @@ agg_path_index (lua_State *L)
for (r = cmd_table; r->cmd; r++)
{
if (strcmp (key, r->cmd) == 0)
- break;
+ break;
}
if (r->cmd)
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月16日 10:14:04 +0000

AltStyle によって変換されたページ (->オリジナル) /