summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/win32/01-window/02_multi_window.cpp2
-rw-r--r--source/tests/win32/01-window/03_sub_menu.cpp15
2 files changed, 10 insertions, 7 deletions
diff --git a/source/tests/win32/01-window/02_multi_window.cpp b/source/tests/win32/01-window/02_multi_window.cpp
index a57c9d4..e83f1a3 100644
--- a/source/tests/win32/01-window/02_multi_window.cpp
+++ b/source/tests/win32/01-window/02_multi_window.cpp
@@ -3,7 +3,7 @@
#if _run_app == _multi_window
#include <windows.h>
-#include <GL/gfx_device.h>
+#include <GL/GfxDevice.h>
#include <GL/glu.h>
#define MAX_LOADSTRING 100
HINSTANCE hInstance;
diff --git a/source/tests/win32/01-window/03_sub_menu.cpp b/source/tests/win32/01-window/03_sub_menu.cpp
index 86bcc76..ccf62c0 100644
--- a/source/tests/win32/01-window/03_sub_menu.cpp
+++ b/source/tests/win32/01-window/03_sub_menu.cpp
@@ -1,12 +1,12 @@
#include "config.h"
#if _run_app == _sub_menu
-#include <asura-utils/io/file_system.h>
-#include <asura-utils/io/data_buffer.h>
+#include <asura-utils/IO/FileSystem.h>
+#include <asura-utils/IO/DataBuffer.h>
#include <asura-core/graphics/image.h>
#include <asura-core/graphics/shader.h>
-#include <asura-core/image/image_data.h>
-#include <asura-core/graphics/vertex_buffer.h>
+#include <asura-core/image/ImageData.h>
+#include <asura-core/graphics/VertexBuffer.h>
#include <SDL2/SDL.h>
#include <string>
@@ -111,7 +111,11 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLin
DWORD extendedStyle = 0;
windowStyle = WS_POPUP | WS_CLIPCHILDREN | WS_THICKFRAME | WS_VISIBLE;
extendedStyle = WS_EX_TOOLWINDOW;
- //windowStyle = WS_OVERLAPPEDWINDOW | WS_VISIBLE;
+
+ windowStyle = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_CLIPCHILDREN | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_VISIBLE;
+ extendedStyle = 0;
+
+ //windowStyle = WS_OVERLAPPEDWINDOW | WS_VISIBLE;WS_VISIBLE
RECT rect = { 100, 100, 500, 500 };
AdjustWindowRectEx(&rect, windowStyle, true, extendedStyle);
@@ -332,7 +336,6 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg,
}
void AddMenus(HWND hwnd) {
- return;
HMENU hMenubar = CreateMenu();
HMENU hMenu = CreateMenu();
HMENU hSubMenu = CreatePopupMenu();