added CPUID code from rbench and get_cpl to be used by the
[dosdemo] / src / sdl / main.c
index f2487cf..784b208 100644 (file)
@@ -9,6 +9,7 @@
 #include "cfgopt.h"
 #include "sball.h"
 #include "vmath.h"
+#include "cpuid.h"
 
 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);
 
+       if(read_cpuid(&cpuid) == 0) {
+               print_cpuid(&cpuid);
+       }
+
        time_msec = 0;
        if(demo_init(argc, argv) == -1) {
                /*free(fb_pixels);*/