mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-19 17:44:13 +02:00
Switched imgui over to SDL implementation, dialog input works.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user