gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2010年07月23日 22:59:23 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2010年07月23日 22:59:23 +0200
commitdbe3ed247ea783b1a8087bf19b9be91c2e246b0b (patch)
treec9969664f56cc03d8a9be61666c9b4fba602a357 /agg-plot
parente0c636c5c1e9bb0696ace9ba4d8e39f76843b484 (diff)
downloadgsl-shell-dbe3ed247ea783b1a8087bf19b9be91c2e246b0b.tar.gz
added moebius strip example / added XInitThreads
Diffstat (limited to 'agg-plot')
-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
3 files changed, 9 insertions, 4 deletions
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 *
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月30日 21:12:50 +0000

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