d94f1acf91
Fyre is a tool for producing computational artwork based on histograms of iterated chaotic functions. At the moment, it implements the Peter de Jong map in a fixed-function pipeline with an interactive GTK+ frontend and a command line interface for easy and efficient rendering of high-resolution, high quality images. help and ok steven@
25 lines
790 B
Plaintext
25 lines
790 B
Plaintext
$OpenBSD: patch-src_animation_c,v 1.1.1.1 2007/05/21 14:24:06 jasper Exp $
|
|
--- src/animation.c.orig Fri May 18 22:57:11 2007
|
|
+++ src/animation.c Fri May 18 22:57:16 2007
|
|
@@ -312,6 +312,7 @@ void animation_store_chunk(AnimChunkState *state,
|
|
gchar *tempstring;
|
|
Spline *spline;
|
|
GdkPixdata pixdata;
|
|
+ guint64 word;
|
|
|
|
switch (type) {
|
|
|
|
@@ -350,9 +351,11 @@ void animation_store_chunk(AnimChunkState *state,
|
|
|
|
case CHUNK_DURATION:
|
|
/* The transition duration, as a double */
|
|
+ word = *(guint64*)(data);
|
|
+ word = GUINT64_FROM_LE(word);
|
|
if (length == sizeof(gdouble)) {
|
|
gtk_list_store_set(state->self->model, &state->iter,
|
|
- ANIMATION_MODEL_DURATION, *(gdouble*)data,
|
|
+ ANIMATION_MODEL_DURATION, *(gdouble*)&word,
|
|
-1);
|
|
}
|
|
else {
|