Fixed bug #817
Daniele Forghieri 2009-09-30 15:48:24 PDT Some tests doesn't use the correct include statement (and there are some missing declaration) and some test use C++ variable after statement, preventing compile wicth Open Watcom The patch attached fixes this --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403962
This commit is contained in:
parent
4968cb27ac
commit
00fcbc745d
7 changed files with 16 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
/* A simple program to test the Input Method support in the SDL library (1.3+) */
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -8,7 +8,7 @@
|
|||
#ifdef HAVE_SDL_TTF
|
||||
#include "SDL_ttf.h"
|
||||
#endif
|
||||
|
||||
|
||||
#define DEFAULT_PTSIZE 30
|
||||
#define DEFAULT_FONT "/System/Library/Fonts/华文细黑.ttf"
|
||||
#define MAX_TEXT_LENGTH 256
|
||||
|
@ -210,13 +210,13 @@ HotKey_ToggleFullScreen(void)
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
SDL_Event event;
|
||||
int done = 0;
|
||||
|
||||
InitVideo(argc, argv);
|
||||
InitInput();
|
||||
Redraw();
|
||||
|
||||
SDL_Event event;
|
||||
int done = 0;
|
||||
|
||||
while (! done && SDL_WaitEvent(&event))
|
||||
{
|
||||
switch (event.type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue