You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5e3d114
Browse filesBrowse the repository at this point in the historyBrowse files
Record the stage, not the window, when the window is bigger
Windows lets students maximize a stage's window although the library asks
for a fixed size. The stage is letterboxed into the bigger window, but the
recorders still took the whole window: a GIF started before maximizing kept
only the window's top-left corner afterwards (the encoder crops every frame
to the first one's size), and a maximized window was encoded at full size on
the render thread, which slowed a program down to about one frame per
second under software rendering.
GifRecorder, FrameRecorder and FFmpegRecorder now save the stage at its own
size, cut out of the window the way the stage designer's capture already
did. That cut-out moves from Preview to Applet.getStageImage(), so all of
them share it. With the window at the stage's size the pictures are the same
as before.
0 commit comments