[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/test/colorselector main.cpp,1.1.2.3,1.1.2.4
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/test/colorselector main.cpp,1.1.2.3,1.1.2.4 |
Date: |
Sun, 30 Mar 2003 11:31:00 -0500 |
Update of /cvsroot/paragui/paragui/test/colorselector
In directory subversions:/tmp/cvs-serv28134/test/colorselector
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/colorselector/Attic/main.cpp,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -r1.1.2.3 -r1.1.2.4
*** main.cpp 29 Mar 2003 21:26:40 -0000 1.1.2.3
--- main.cpp 30 Mar 2003 16:30:57 -0000 1.1.2.4
***************
*** 1,30 ****
! #include "pgcolorselector.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 = 16;
!
! // 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);
! }
!
PG_ColorSelector colorsel1(NULL, PG_Rect(10,10,300,150));
colorsel1.Show();
!
! PG_Gradient g;
g.colors[0].r = 255;
g.colors[0].g = 0;
--- 1,30 ----
! #include "pgcolorselector.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 = 16;
!
! // 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);
! }
!
PG_ColorSelector colorsel1(NULL, PG_Rect(10,10,300,150));
colorsel1.Show();
!
! PG_Gradient g;
g.colors[0].r = 255;
g.colors[0].g = 0;
***************
*** 42,53 ****
g.colors[3].g = 255;
g.colors[3].b = 255;
!
! PG_ColorSelector colorsel2(NULL, PG_Rect(10,170,300,150));
colorsel2.SetColorGradient(g);
colorsel2.Show();
!
! app.SetEmergencyQuit(true);
! app.Run();
!
! return EXIT_SUCCESS;
! }
--- 42,53 ----
g.colors[3].g = 255;
g.colors[3].b = 255;
!
! PG_ColorSelector colorsel2(NULL, PG_Rect(10,170,300,150));
colorsel2.SetColorGradient(g);
colorsel2.Show();
!
! app.SetEmergencyQuit(true);
! app.Run();
!
! return EXIT_SUCCESS;
! }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/test/colorselector main.cpp,1.1.2.3,1.1.2.4,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/src/draw gradient.cpp,1.3.6.5,1.3.6.6
- Next by Date:
[paragui-cvs] CVS: paragui/include paraconfig.h,1.3.6.13,1.3.6.14 paraconfig_win32.h,1.1.1.1.6.7,1.1.1.1.6.8 pgapplication.h,1.3.6.5,1.3.6.6 pglog.h,1.3.6.1,1.3.6.2 pgwidget.h,1.3.6.1,1.3.6.2
- Previous by thread:
[paragui-cvs] CVS: paragui/src/draw gradient.cpp,1.3.6.5,1.3.6.6
- Next by thread:
[paragui-cvs] CVS: paragui/include paraconfig.h,1.3.6.13,1.3.6.14 paraconfig_win32.h,1.1.1.1.6.7,1.1.1.1.6.8 pgapplication.h,1.3.6.5,1.3.6.6 pglog.h,1.3.6.1,1.3.6.2 pgwidget.h,1.3.6.1,1.3.6.2
- Index(es):