From 36592a0d147243d57c555c4ca28327a2cbd93c2f Mon Sep 17 00:00:00 2001 From: steffen Date: Fri, 22 Feb 2013 23:00:38 +0000 Subject: [PATCH] android... fixed stuff.. --- android/jni/android_gfx.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/android/jni/android_gfx.c b/android/jni/android_gfx.c index a371ae3..5f21a1c 100644 --- a/android/jni/android_gfx.c +++ b/android/jni/android_gfx.c @@ -265,6 +265,16 @@ void gfx_draw_polygon (struct image *dimg, iPoint *p, int pcnt, struct line_styl glUniform4fv(engine.gles_color, 1, c.c.array); glVertexAttribPointer (engine.gles_pos, 3, GL_FLOAT, GL_FALSE, 0, polygon); glDrawArrays (GL_TRIANGLE_FAN, 0, pcnt); + + if (style.width < 1.0) style.width = 1.0; + glLineWidth (style.width); + + glUseProgram (engine.gles_prgobject); + glUniform1i (engine.gles_txenabled, 0); + glUniform4fv(engine.gles_color, 1, style.c.c.array); + glVertexAttribPointer (engine.gles_pos, 3, GL_FLOAT, GL_FALSE, 0, polygon); + glDrawArrays (GL_LINE_LOOP, 0, pcnt); + };