Skip to content

Commit

Permalink
Fix black screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamebuster19901 committed Mar 29, 2020
1 parent b81b2ef commit fb48a25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/de/gurkenlabs/litiengine/video/VideoManagerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ private synchronized void setMedia(Media media) {
Scene scene = new Scene(root, media.getWidth(), media.getHeight());
mediaView.autosize();
panel.setScene(scene);
mediaView.getMediaPlayer().setOnReady(() -> panel.setSize(media.getWidth(), media.getHeight()));
});
}

Expand Down

0 comments on commit fb48a25

Please sign in to comment.