mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.developing rainbow
git-svn-id: svn://ultimatepp.org/upp/trunk@3593 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
37ede51100
commit
b0078027de
2 changed files with 40 additions and 0 deletions
19
rainbow/LinuxFb/Local.h
Normal file
19
rainbow/LinuxFb/Local.h
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#ifdef PLATFORM_POSIX
|
||||||
|
void FBInit(const String& fbdevice);
|
||||||
|
|
||||||
|
#define GUI_APP_MAIN \
|
||||||
|
void GuiMainFn_();\
|
||||||
|
\
|
||||||
|
int main(int argc, const char **argv, const char **envptr) { \
|
||||||
|
UPP::AppInit__(argc, argv, envptr); \
|
||||||
|
FBInit("/dev/fb0"); \
|
||||||
|
GuiMainFn_(); \
|
||||||
|
UPP::Ctrl::CloseTopCtrls(); \
|
||||||
|
UPP::UsrLog("---------- About to delete this log of LinuxFB..."); \
|
||||||
|
UPP::DeleteUsrLog(); \
|
||||||
|
return UPP::GetExitCode(); \
|
||||||
|
} \
|
||||||
|
\
|
||||||
|
void GuiMainFn_()
|
||||||
|
|
||||||
|
#endif
|
||||||
21
rainbow/WinFb/Local.h
Normal file
21
rainbow/WinFb/Local.h
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
Vector<WString>& coreCmdLine__();
|
||||||
|
Vector<WString> SplitCmdLine__(const char *cmd);
|
||||||
|
|
||||||
|
void FBInit(HINSTANCE hInstance);
|
||||||
|
|
||||||
|
#define GUI_APP_MAIN \
|
||||||
|
void GuiMainFn_();\
|
||||||
|
\
|
||||||
|
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdShow) \
|
||||||
|
{ \
|
||||||
|
UPP::coreCmdLine__() = UPP::SplitCmdLine__(UPP::FromSystemCharset(lpCmdLine)); \
|
||||||
|
UPP::AppInitEnvironment__(); \
|
||||||
|
UPP::FBInit(hInstance); \
|
||||||
|
GuiMainFn_(); \
|
||||||
|
UPP::Ctrl::CloseTopCtrls(); \
|
||||||
|
UPP::UsrLog("---------- About to delete this log of WinFB..."); \
|
||||||
|
UPP::DeleteUsrLog(); \
|
||||||
|
return UPP::GetExitCode(); \
|
||||||
|
} \
|
||||||
|
\
|
||||||
|
void GuiMainFn_()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue