projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved the drawFps call to the backends so it works automatically for
[dosdemo]
/
src
/
sdl
/
main.c
diff --git
a/src/sdl/main.c
b/src/sdl/main.c
index
48852f5
..
05744e8
100644
(file)
--- a/
src/sdl/main.c
+++ b/
src/sdl/main.c
@@
-3,6
+3,7
@@
#include <limits.h>
#include <SDL/SDL.h>
#include "demo.h"
#include <limits.h>
#include <SDL/SDL.h>
#include "demo.h"
+#include "tinyfps.h"
static void handle_event(SDL_Event *ev);
static void toggle_fullscreen(void);
static void handle_event(SDL_Event *ev);
static void toggle_fullscreen(void);
@@
-61,6
+62,7
@@
int main(int argc, char **argv)
time_msec = SDL_GetTicks() - start_time;
demo_draw();
time_msec = SDL_GetTicks() - start_time;
demo_draw();
+ drawFps(fb_pixels);
if(SDL_MUSTLOCK(fbsurf)) {
SDL_LockSurface(fbsurf);
if(SDL_MUSTLOCK(fbsurf)) {
SDL_LockSurface(fbsurf);