Skip to content

Commit

Permalink
fixed missing SDL_DisplayFormat
Browse files Browse the repository at this point in the history
resolves #1 by redifining SDL_DisplayFormat in SDL_DisplayFormatAlpha
  • Loading branch information
mad4j committed Sep 21, 2014
1 parent 3208d35 commit 1f68c3c
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 43 deletions.
8 changes: 4 additions & 4 deletions bin/firework.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions bin/nccolour.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions bin/newdemo.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions bin/ptest.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions bin/rain.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions bin/sdltest.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions bin/testcurs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bin/tui.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions bin/tuidemo.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions bin/worm.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions bin/xmas.js

Large diffs are not rendered by default.

Binary file modified lib/libcurses.o
Binary file not shown.
Binary file modified out/pdcscrn.bc
Binary file not shown.
3 changes: 3 additions & 0 deletions pdcurses34/sdl1/pdcsdl.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

#include <SDL/SDL.h>

//emscripten support
#define SDL_DisplayFormat SDL_DisplayFormatAlpha

PDCEX SDL_Surface *pdc_screen, *pdc_font, *pdc_icon, *pdc_back;
PDCEX int pdc_sheight, pdc_swidth, pdc_yoffset, pdc_xoffset;

Expand Down

0 comments on commit 1f68c3c

Please sign in to comment.