X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=chess;a=blobdiff_plain;f=src%2Fchess.ec;h=f120c1c222e9bb2034c72e92d6c2be42ec32b4df;hp=e86b27ea87cf722cff4b7db6069433ea1a9ffa15;hb=HEAD;hpb=4c30b8914ddddd5381ece38f84c1c42399dd34c6 diff --git a/src/chess.ec b/src/chess.ec index e86b27e..f120c1c 100644 --- a/src/chess.ec +++ b/src/chess.ec @@ -41,11 +41,11 @@ ChessApp app; class ChessApp : GuiApplication { appName = APPNAME; -#if defined(__WIN32__) +/*#if defined(__WIN32__) driver = "Direct3D"; -#else +#else*/ driver = "OpenGL"; -#endif +//#endif Chess{}; void Main() @@ -55,11 +55,22 @@ class ChessApp : GuiApplication } } +#ifdef HIGH_DPI +define stateWidth = 300; +define turnWidth = 150; +#else +define stateWidth = 200; +define turnWidth = 100; +#endif + class Chess : Window { background = gray, hasMenuBar = true, hasStatusBar = true, - text = APPNAME, hasClose = true, hasMaximize = true, hasMinimize = true, - borderStyle = sizable, hasClose = true, + text = APPNAME, +#ifndef __ANDROID__ + hasClose = true, hasMaximize = true, hasMinimize = true, + borderStyle = sizable, +#endif anchor = Anchor { left = 0, top = 0, right = 0, bottom = 0 }; bool hosting, local, ai; @@ -71,8 +82,8 @@ class Chess : Window ChessState chessState; - StatusField stateField { statusBar, width = 200 }; - StatusField turnField { statusBar, width = 100 }; + StatusField stateField { statusBar, width = stateWidth}; + StatusField turnField { statusBar, width = turnWidth }; property ChessState * chessState { get { return &chessState; } }