projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added CPUID code from rbench and get_cpl to be used by the
[dosdemo]
/
src
/
sdl
/
main.c
diff --git
a/src/sdl/main.c
b/src/sdl/main.c
index
f2487cf
..
784b208
100644
(file)
--- a/
src/sdl/main.c
+++ b/
src/sdl/main.c
@@
-9,6
+9,7
@@
#include "cfgopt.h"
#include "sball.h"
#include "vmath.h"
#include "cfgopt.h"
#include "sball.h"
#include "vmath.h"
+#include "cpuid.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);
@@
-65,6
+66,10
@@
int main(int argc, char **argv)
SDL_WM_SetCaption("dosdemo/SDL", 0);
SDL_ShowCursor(0);
SDL_WM_SetCaption("dosdemo/SDL", 0);
SDL_ShowCursor(0);
+ if(read_cpuid(&cpuid) == 0) {
+ print_cpuid(&cpuid);
+ }
+
time_msec = 0;
if(demo_init(argc, argv) == -1) {
/*free(fb_pixels);*/
time_msec = 0;
if(demo_init(argc, argv) == -1) {
/*free(fb_pixels);*/