blob: 5ca73691ed650dd6062ca443afa3f376de77cfbc [file] [log] [blame]
Peter Korsgaard0fccab62011-10-08 21:49:58 +02001From upstream git (git://git.directfb.org/git/directfb/libs/LiTE.git)
2
3From ffe0ce78327a63ddb1265328ea9b5b03acdca019 Mon Sep 17 00:00:00 2001
4From: Denis Oliver Kropp <dok@directfb.org>
5Date: Fri, 1 Apr 2011 20:20:26 +0200
6Subject: [PATCH] dfbspy: Build fix for dfbspy example.
7
8---
9 examples/dfbspy.c | 20 ++++++++++----------
10 1 files changed, 10 insertions(+), 10 deletions(-)
11
12diff --git a/examples/dfbspy.c b/examples/dfbspy.c
13index 5f36f0b..c7f9725 100644
14--- a/examples/dfbspy.c
15+++ b/examples/dfbspy.c
16@@ -89,9 +89,9 @@ read_stat( FusionStat *stat, int world )
17
18 /**************************************************************************************************/
19
20-#define CALC(x) stat.x = (int)(((s.x - last_stat.x) * 1000 / (float) diff) + 0.5f)
21+#define CALC(x) stats.x = (int)(((s.x - last_stat.x) * 1000 / (float) diff) + 0.5f)
22
23-static FusionStat last_stat, stat;
24+static FusionStat last_stat, stats;
25 static long long last_millis;
26
27 static int
28@@ -145,14 +145,14 @@ static const struct {
29 void (*update)( LiteLabel *label, void *ctx );
30 void *ctx;
31 } list[] = {
32- { "lease/purchase", update_number, &stat.lease_purchase },
33- { "cede", update_number, &stat.cede },
34- { "attach", update_number, &stat.attach },
35- { "detach", update_number, &stat.detach },
36- { "ref up", update_number, &stat.ref_up },
37- { "ref down", update_number, &stat.ref_down },
38- { "prevail/swoop", update_number, &stat.prevail_swoop },
39- { "dismiss", update_number, &stat.dismiss }
40+ { "lease/purchase", update_number, &stats.lease_purchase },
41+ { "cede", update_number, &stats.cede },
42+ { "attach", update_number, &stats.attach },
43+ { "detach", update_number, &stats.detach },
44+ { "ref up", update_number, &stats.ref_up },
45+ { "ref down", update_number, &stats.ref_down },
46+ { "prevail/swoop", update_number, &stats.prevail_swoop },
47+ { "dismiss", update_number, &stats.dismiss }
48 };
49
50 #define NUM_LIST (sizeof(list)/sizeof(list[0]))
51--
521.7.6.3
53