Subversion Repositories Kolibri OS

Rev

Rev 9133 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9133 Rev 9213
Line 25... Line 25...
25
 
25
 
26
extern byte signon[];
26
extern byte signon[];
27
extern void kolibri_set_win_center();
27
extern void kolibri_set_win_center();
28
extern char* dirname(char* path);
28
extern char* dirname(char* path);
29
extern void setcwd(char* path);
-
 
30
extern "C"{
-
 
31
    extern void uSDL_StartTicks(void);
29
extern void setcwd(char* path);
32
}
30
 
33
extern boolean SD_Started;
31
extern boolean SD_Started;
34
/*
32
/*
Line 35... Line 33...
35
=============================================================================
33
=============================================================================
Line 1215... Line 1213...
1215
    // initialize SDL
1213
    // initialize SDL
1216
#if defined _WIN32
1214
#if defined _WIN32
1217
    putenv("SDL_VIDEODRIVER=directx");
1215
    putenv("SDL_VIDEODRIVER=directx");
1218
#endif
1216
#endif
Line 1219... Line -...
1219
    
-
 
1220
#ifdef _KOLIBRI
-
 
1221
    uSDL_StartTicks();
-
 
1222
#endif
-
 
1223
    
1217
        
1224
    if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0)
1218
    if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0)
1225
    {
1219
    {
1226
        printf("Unable to init SDL: %s\n", SDL_GetError());
1220
        printf("Unable to init SDL: %s\n", SDL_GetError());
1227
        exit(1);
1221
        exit(1);