mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 23:13:01 +00:00
DirectX 9 backend, part 6
mouse input works
This commit is contained in:
parent
d0083b7124
commit
106d129622
1 changed files with 5 additions and 0 deletions
|
@ -131,6 +131,9 @@ void FurnaceGUIRenderDX9::resized(const SDL_Event& ev) {
|
|||
logE("OH NO");
|
||||
}
|
||||
ImGui_ImplDX9_CreateDeviceObjects();
|
||||
|
||||
outW=ev.window.data1;
|
||||
outH=ev.window.data2;
|
||||
}
|
||||
|
||||
void FurnaceGUIRenderDX9::clear(ImVec4 color) {
|
||||
|
@ -262,6 +265,8 @@ bool FurnaceGUIRenderDX9::init(SDL_Window* win, int swapInt) {
|
|||
maxHeight=caps.MaxTextureHeight;
|
||||
}
|
||||
|
||||
SDL_GetWindowSize(win,&outW,&outH);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue