Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions arcade/gui/ui_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from typing import List, Dict, TypeVar, Iterable, Optional, Type

from pyglet.event import EventDispatcher, EVENT_HANDLED, EVENT_UNHANDLED
from pyglet.math import Mat4

import arcade
from arcade.gui.events import (
Expand Down Expand Up @@ -267,14 +266,6 @@ def draw(self) -> None:
self._do_layout()

ctx = self.window.ctx

# Reset view matrix so content is not rendered into
# the surface with offset
prev_view = self.window.view
prev_proj = self.window.projection
self.window.view = Mat4()
self.window.projection = Mat4()

with ctx.enabled(ctx.BLEND):
self._do_render()

Expand All @@ -285,9 +276,6 @@ def draw(self) -> None:
for layer in layers:
self._get_surface(layer).draw()

self.window.view = prev_view
self.window.projection = prev_proj

def adjust_mouse_coordinates(self, x, y):
"""
This method is used, to translate mouse coordinates to coordinates
Expand Down