Peter Korsgaard | 0fccab6 | 2011-10-08 21:49:58 +0200 | [diff] [blame] | 1 | From upstream git (git://git.directfb.org/git/directfb/libs/LiTE.git) |
| 2 | |
| 3 | From ffe0ce78327a63ddb1265328ea9b5b03acdca019 Mon Sep 17 00:00:00 2001 |
| 4 | From: Denis Oliver Kropp <dok@directfb.org> |
| 5 | Date: Fri, 1 Apr 2011 20:20:26 +0200 |
| 6 | Subject: [PATCH] dfbspy: Build fix for dfbspy example. |
| 7 | |
| 8 | --- |
| 9 | examples/dfbspy.c | 20 ++++++++++---------- |
| 10 | 1 files changed, 10 insertions(+), 10 deletions(-) |
| 11 | |
| 12 | diff --git a/examples/dfbspy.c b/examples/dfbspy.c |
| 13 | index 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 | -- |
| 52 | 1.7.6.3 |
| 53 | |