~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/sdl_canvas_blank.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-20 22:44:35 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130920224435-apuwj4fsl3fqv1a6
Tags: 1.5.6~20130920~6010666-1
* New snapshot release
* Update the list of supported architectures to the same as libv8
  (Closes: #723129)
* emlibtool has been removed from upstream.
* Fix warning syntax-error-in-dep5-copyright
* Refresh of the patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include <SDL/SDL.h>
 
3
 
 
4
 
 
5
int main() {
 
6
  SDL_Init(SDL_INIT_VIDEO);
 
7
  SDL_Surface *screen = SDL_SetVideoMode(256, 256, 32, SDL_SWSURFACE);
 
8
 
 
9
  if (SDL_MUSTLOCK(screen)) SDL_LockSurface(screen);
 
10
  if (SDL_MUSTLOCK(screen)) SDL_UnlockSurface(screen);
 
11
  SDL_Flip(screen); 
 
12
 
 
13
  SDL_Quit();
 
14
 
 
15
  return 0;
 
16
}
 
17