this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixed a couple more VS warnings. Made common.c's initialize_demo() actually use w and h.

+7 -6
+4 -5
demos/common/common.c
··· 1 - #include "SDL_gpu.h" 1 + #include "common.h" 2 2 #include <string.h> 3 - #include <strings.h> 4 3 5 4 void printRenderers(void) 6 5 { ··· 47 46 GPU_Log("Using renderer: %s (%d.%d)\n\n", id.name, id.major_version, id.minor_version); 48 47 } 49 48 50 - GPU_Target* initialize_demo(int argc, char** argv, int w, int h) 49 + GPU_Target* initialize_demo(int argc, char** argv, Uint16 w, Uint16 h) 51 50 { 52 51 GPU_Target* screen; 53 52 printRenderers(); ··· 85 84 } 86 85 87 86 if(renderer == GPU_RENDERER_UNKNOWN) 88 - screen = GPU_Init(800, 600, GPU_DEFAULT_INIT_FLAGS); 87 + screen = GPU_Init(w, h, GPU_DEFAULT_INIT_FLAGS); 89 88 else 90 - screen = GPU_InitRenderer(renderer, 800, 600, GPU_DEFAULT_INIT_FLAGS); 89 + screen = GPU_InitRenderer(renderer, w, h, GPU_DEFAULT_INIT_FLAGS); 91 90 92 91 if(screen == NULL) 93 92 return NULL;
+3 -1
demos/common/common.h
··· 1 1 #ifndef _COMMON_H__ 2 2 #define _COMMON_H__ 3 3 4 + #include "SDL_gpu.h" 5 + 4 6 void printRenderers(void); 5 7 void printCurrentRenderer(void); 6 - GPU_Target* initialize_demo(int argc, char** argv, int w, int h); 8 + GPU_Target* initialize_demo(int argc, char** argv, Uint16 w, Uint16 h); 7 9 8 10 #endif