[Pkg-wmaker-commits] [wmbubble] 47/207: There's really no reason to have an ugly in-display FPS meter, remove it.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit 8a47cd7d5badfda1a2aaca9ad8c7858d2ef89824
Author: Robert Jacobs <rnjacobs at mit.edu>
Date:   Sat Jul 30 21:17:44 2011 -0700

    There's really no reason to have an ugly in-display FPS meter, remove it.
---
 bubblemon.c | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/bubblemon.c b/bubblemon.c
index 2313869..e812300 100644
--- a/bubblemon.c
+++ b/bubblemon.c
@@ -317,7 +317,7 @@ int main(int argc, char **argv) {
 	unsigned int loadPercentage;
 	int proximity = 0;
 #ifdef FPS
-	int frames_count, old_frames_count;
+	int frames_count;
 	time_t last_time;
 #endif
 #if defined(PRO) && PRO > 0
@@ -328,7 +328,7 @@ int main(int argc, char **argv) {
 	XrmDatabase x_resource_db;
 
 #ifdef FPS
-	old_frames_count = frames_count = last_time = 0;
+	frames_count = last_time = 0;
 #endif
 
 	if (mem_screen.width != mem_screen.height || mem_screen.width != BOX_SIZE ||
@@ -430,18 +430,9 @@ int main(int argc, char **argv) {
 
 
 #ifdef FPS
-		/* render frames per second on bottom-right corner :) */
 		frames_count++;
-		int b;
-		b=old_frames_count;
-		if (b>=100) {
-			draw_digit(b/100,&bm.rgb_buf[3*(43+BOX_SIZE*46)],0,255,0);
-			b=b%100;
-		}
-		draw_digit(b/10,&bm.rgb_buf[3*(47+BOX_SIZE*46)],0,255,0);
-		draw_digit(b%10,&bm.rgb_buf[3*(51+BOX_SIZE*46)],0,255,0);
 		if(time(NULL)!=last_time) {
-			old_frames_count=frames_count;
+			fprintf(stderr,"%03dfps\n",frames_count);
 			frames_count=0;
 			last_time=time(NULL);
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list