paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/test/keyboard main.cpp,1.1.2.1,1.1.2.2


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/test/keyboard main.cpp,1.1.2.1,1.1.2.2
Date: Sun, 30 Mar 2003 11:31:00 -0500

Update of /cvsroot/paragui/paragui/test/keyboard
In directory subversions:/tmp/cvs-serv28134/test/keyboard

Modified Files:
      Tag: devel-1-0
        main.cpp 
Log Message:
- converted wrong CR/LF to LF (UNIX style)
- applied patches from "H. C." <address@hidden>
  access functions for PG_Application::enableAppIdleCalls
  added functions to set the windowtitle of the log-console



Index: main.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/test/keyboard/Attic/main.cpp,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** main.cpp    14 Jul 2002 14:27:15 -0000      1.1.2.1
--- main.cpp    30 Mar 2003 16:30:58 -0000      1.1.2.2
***************
*** 1,33 ****
! #include "keyboard.h"
! #include "pgapplication.h"
! 
! int main(int argc, char* argv[]) {
!       char theme[20];
!       strcpy(theme, "simple");
! 
!       // initial flags for screensurface
!       Uint32 flags = SDL_SWSURFACE|SDL_HWPALETTE;
!       int bpp = 0;
! 
!       // construct the application object
!       PG_Application app;
!       
!       if(!app.LoadTheme(theme)) {
!           printf("Unable to load theme \"%s\"", theme);
!           return -1;
!       }
!       
!       if(!app.InitScreen(640, 480, bpp, flags)){
!               printf("Resolution not supported\n");
!               exit(-1);
!       }
! 
        TKeyAlpha_LineEdit edit(NULL, PG_Rect(200,300,300,25));
        edit.Init();
        edit.Show();
!               
!       app.SetEmergencyQuit(true);
!       app.Run();
! 
!       return EXIT_SUCCESS;
! }
--- 1,33 ----
! #include "keyboard.h"
! #include "pgapplication.h"
! 
! int main(int argc, char* argv[]) {
!       char theme[20];
!       strcpy(theme, "simple");
! 
!       // initial flags for screensurface
!       Uint32 flags = SDL_SWSURFACE|SDL_HWPALETTE;
!       int bpp = 0;
! 
!       // construct the application object
!       PG_Application app;
!       
!       if(!app.LoadTheme(theme)) {
!           printf("Unable to load theme \"%s\"", theme);
!           return -1;
!       }
!       
!       if(!app.InitScreen(640, 480, bpp, flags)){
!               printf("Resolution not supported\n");
!               exit(-1);
!       }
! 
        TKeyAlpha_LineEdit edit(NULL, PG_Rect(200,300,300,25));
        edit.Init();
        edit.Show();
!               
!       app.SetEmergencyQuit(true);
!       app.Run();
! 
!       return EXIT_SUCCESS;
! }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]