Demo: custom rendering example resize problem #610

Closed
opened 2016-04-25 08:47:47 +00:00 by erson · 2 comments
erson commented 2016-04-25 08:47:47 +00:00 (Migrated from github.com)

i was playing with the demo.i realised that if i resize canvas it is not hiding all drawing area.

1
2

there seems to be rendering bug with drawing canvas.i didnt dig in to it.it could be happening just on demo implementation.

i was playing with the demo.i realised that if i resize canvas it is not hiding all drawing area. ![1](https://cloud.githubusercontent.com/assets/1500710/14777615/e4e5f274-0ad6-11e6-8377-c6c82380b892.png) ![2](https://cloud.githubusercontent.com/assets/1500710/14777616/e4e72022-0ad6-11e6-8574-f95034133c98.png) there seems to be rendering bug with drawing canvas.i didnt dig in to it.it could be happening just on demo implementation.
ocornut commented 2016-04-25 08:52:10 +00:00 (Migrated from github.com)

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.

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.
ocornut commented 2016-04-26 09:04:20 +00:00 (Migrated from github.com)

Fixed and exposed high-level ImGui::PushClipRect() that I've been wanting to expose for a while.

Fixed and exposed high-level ImGui::PushClipRect() that I've been wanting to expose for a while.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#610
No description provided.