Switched imgui over to SDL implementation, dialog input works.

This commit is contained in:
Justin Marshall
2020-06-07 21:13:25 -07:00
parent 290a7fb1c5
commit 871d7a8601
7 changed files with 31 additions and 13 deletions
+5 -2
View File
@@ -1,10 +1,11 @@
#define UNICODE
#include "DirectDrawWrapper.h"
#include "imgui.h"
#include "examples/imgui_impl_win32.h"
#include "examples/imgui_impl_sdl.h"
#include "examples/imgui_impl_dx9.h"
//#include "resource.h"
LPDIRECT3DDEVICE9 globald3d9Device;
extern SDL_Window* game_window;
/*******************
**IUnknown methods**
@@ -1324,10 +1325,12 @@ HRESULT IDirectDrawWrapper::Present()
if (Imgui_Dialog_Function) {
ImGuiIO& io = ImGui::GetIO();
io.DisplaySize = ImVec2(displayWidth, displayHeight);
io.DisplaySize = ImVec2(displayWidth, displayHeight);
ImGui_ImplDX9_NewFrame();
ImGui::NewFrame();
ImGui_ImplSDL2_NewFrame(game_window);
Imgui_Dialog_Function();
ImGui::Render();