Skip to content

Commit

Permalink
main : small update to render loop example
Browse files Browse the repository at this point in the history
  • Loading branch information
my1e5 committed Aug 17, 2023
1 parent b2d2e60 commit 8a2b3c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drawing/render_loop_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
CANVAS_SIZE = 300

width, height, channels, data = dpg.load_image("beach.jpg")
with dpg.texture_registry(show=True):
with dpg.texture_registry(show=False):
dpg.add_static_texture(width, height, data, tag="beach")


Expand All @@ -15,7 +15,7 @@ def update_circle():
dpg.configure_item("circle", center=(x,y))


with dpg.window(width=400, height=400):
with dpg.window():
dpg.set_primary_window(dpg.last_item(), True)

with dpg.drawlist(width=CANVAS_SIZE, height=CANVAS_SIZE):
Expand Down

0 comments on commit 8a2b3c7

Please sign in to comment.