mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 14:24:53 +00:00 
			
		
		
		
	iOS: Fixed compiling template on C89 compilers.
This commit is contained in:
		
							parent
							
								
									34a2a46f66
								
							
						
					
					
						commit
						6bd87635ee
					
				| 
						 | 
					@ -5,6 +5,8 @@
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "SDL.h"
 | 
					#include "SDL.h"
 | 
				
			||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <time.h>
 | 
					#include <time.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define SCREEN_WIDTH 320
 | 
					#define SCREEN_WIDTH 320
 | 
				
			||||||
| 
						 | 
					@ -20,6 +22,7 @@ void
 | 
				
			||||||
render(SDL_Renderer *renderer)
 | 
					render(SDL_Renderer *renderer)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    SDL_Rect rect;
 | 
				
			||||||
    Uint8 r, g, b;
 | 
					    Uint8 r, g, b;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Clear the screen */
 | 
					    /* Clear the screen */
 | 
				
			||||||
| 
						 | 
					@ -27,7 +30,6 @@ render(SDL_Renderer *renderer)
 | 
				
			||||||
    SDL_RenderClear(renderer);
 | 
					    SDL_RenderClear(renderer);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /*  Come up with a random rectangle */
 | 
					    /*  Come up with a random rectangle */
 | 
				
			||||||
    SDL_Rect rect;
 | 
					 | 
				
			||||||
    rect.w = randomInt(64, 128);
 | 
					    rect.w = randomInt(64, 128);
 | 
				
			||||||
    rect.h = randomInt(64, 128);
 | 
					    rect.h = randomInt(64, 128);
 | 
				
			||||||
    rect.x = randomInt(0, SCREEN_WIDTH);
 | 
					    rect.x = randomInt(0, SCREEN_WIDTH);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue