author | Francesco Abbate <francesco.bbt@gmail.com> | 2010年07月23日 22:59:23 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2010年07月23日 22:59:23 +0200 |
commit | dbe3ed247ea783b1a8087bf19b9be91c2e246b0b (patch) | |
tree | c9969664f56cc03d8a9be61666c9b4fba602a357 /agg-plot | |
parent | e0c636c5c1e9bb0696ace9ba4d8e39f76843b484 (diff) | |
download | gsl-shell-dbe3ed247ea783b1a8087bf19b9be91c2e246b0b.tar.gz |
-rw-r--r-- | agg-plot/agg_platform_support_x11.cpp | 9 | ||||
-rw-r--r-- | agg-plot/canvas.h | 2 | ||||
-rw-r--r-- | agg-plot/colors.cpp | 2 |
diff --git a/agg-plot/agg_platform_support_x11.cpp b/agg-plot/agg_platform_support_x11.cpp index 8e9152a7..60c83587 100644 --- a/agg-plot/agg_platform_support_x11.cpp +++ b/agg-plot/agg_platform_support_x11.cpp @@ -76,10 +76,9 @@ namespace agg pthread_mutex_t m_mutex[1]; + static bool initialized; }; - - //------------------------------------------------------------------------ platform_specific::platform_specific(pix_format_e format, bool flip_y) : m_format(format), @@ -1238,9 +1237,15 @@ namespace agg } +bool agg::platform_specific::initialized = false; void platform_support_prepare() { + if (! agg::platform_specific::initialized) + { + XInitThreads(); + agg::platform_specific::initialized = true; + } } void platform_support_lock(agg::platform_support *app) diff --git a/agg-plot/canvas.h b/agg-plot/canvas.h index 8ffc3c04..4cffc5d2 100644 --- a/agg-plot/canvas.h +++ b/agg-plot/canvas.h @@ -53,7 +53,7 @@ public: m_width(width), m_height(height) { mtx.scale(width, height); - prof.width(1.0); + prof.width(1.5); }; double width() const { return m_width; }; diff --git a/agg-plot/colors.cpp b/agg-plot/colors.cpp index a9b31413..a972a809 100644 --- a/agg-plot/colors.cpp +++ b/agg-plot/colors.cpp @@ -7,7 +7,7 @@ agg::rgba8 * rgba8_push_default (lua_State *L) { - return new(L, GS_RGBA_COLOR) agg::rgba8(180, 0, 0, 255); + return new(L, GS_RGBA_COLOR) agg::rgba8(80, 0, 0, 255); } agg::rgba8 * |