2004/01/20 20:33:47
[org.ibex.core.git] / src / org / xwt / plat / Win32.cc
index e5b0294..1b3ccea 100644 (file)
@@ -146,6 +146,12 @@ static unsigned char hand_cursor_and[32 * 4] = {
   0xFF, 0xFF, 0xFF, 0xFF
 };
 
+void org::xwt::plat::Win32::natPreInit() {
+    if (org::xwt::util::Log::verbose) {
+        AllocConsole();
+        freopen("CONOUT$", "w+t", stderr);
+    }
+}
 
 void org::xwt::plat::Win32::natInit() {
 
@@ -205,14 +211,6 @@ void org::xwt::plat::Win32::natInit() {
                                                (HWND__*)NULL, (HMENU__*)NULL,
                                                GetModuleHandle(NULL), (LPVOID)NULL);
             
-<<<<<<< Win32.cc
-            surface->hwnd = (jint)CreateWindow(wc.lpszClassName, TEXT(""),
-                                               (msg.wParam ? WS_NORMAL : WS_POPUP) | WS_SIZEBOX,
-                                               200, 200, 100, 100,
-                                               (HWND__*)NULL, (HMENU__*)NULL,
-                                               GetModuleHandle(NULL), (LPVOID)NULL);
-=======
->>>>>>> 1.27
             SetFocus((HWND)surface->hwnd);
             surface->hwndCreated->release();