mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-14 19:04:44 +00:00
Demo: custom rendering example resize problem #610
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#610
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
i was playing with the demo.i realised that if i resize canvas it is not hiding all drawing area.
there seems to be rendering bug with drawing canvas.i didnt dig in to it.it could be happening just on demo implementation.
Yes it is a bug in the demo code, I have noted it in imgui.cpp as:
!- demo: custom render demo pushes a clipping rectangle past parent window bounds. expose ImGui::PushClipRect() from imgui_internal.h?The code is doing a
draw_list->PushClipRect()regardless of the old parent clipping rectangle (which is useful in many cases). I need to expose additional parameter to PushClipRect() to allow doing the union with the parent clipping rectangle and have the demo use that.Fixed and exposed high-level ImGui::PushClipRect() that I've been wanting to expose for a while.