pal_s60-10.cpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // Copyright (c) 2009, netwan. All rights reserved.
  3. //
  4. // This file is part of SDLPAL.
  5. //
  6. // SDLPAL is free software: you can redistribute it and/or modify
  7. // it under the terms of the GNU General Public License as published by
  8. // the Free Software Foundation, either version 3 of the License, or
  9. // (at your option) any later version.
  10. //
  11. // This program is distributed in the hope that it will be useful,
  12. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. // GNU General Public License for more details.
  15. //
  16. // You should have received a copy of the GNU General Public License
  17. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. //
  19. #ifdef __SYMBIAN32__
  20. #include <eikstart.h>
  21. #include <sdlmain.h>
  22. #include <sdlepocapi.h>
  23. /*
  24. This file demonstrates how to change CSDL when using sdlexe.lib - i.e. if default flags are not
  25. ok - you dont have to use CSDL API directly, you can write this file add add it in to your S60 SDL
  26. compilation. Then you dont statically link sdlmain.lib or sdlmaint.lib libraries
  27. */
  28. GLREF_C TInt E32Main()
  29. {
  30. #ifdef __S60_5X__
  31. return SDLEnv::SetMain(SDL_main,CSDL::EEnableFocusStop
  32. | CSDL::EAutoOrientation /*| CSDL::EAllowImageResizeKeepRatio | CSDL::EDrawModeGdi*/,
  33. NULL/*, SDLEnv::EParamQuery | SDLEnv::EEnableVirtualMouseMoveEvents*/);
  34. #else
  35. return SDLEnv::SetMain(SDL_main,CSDL::EEnableFocusStop
  36. | CSDL::EAutoOrientation | CSDL::EAllowImageResizeKeepRatio /*| CSDL::EDrawModeGdi*/,
  37. NULL, /*SDLEnv::EParamQuery |*/ SDLEnv::EEnableVirtualMouseMoveEvents);
  38. #endif
  39. }
  40. #endif