fix sliders being wrong size after changing resolution (close #132)

This commit is contained in:
yugecin 2018-10-02 22:38:38 +02:00
parent 246b1274a6
commit d9646a5feb
No known key found for this signature in database
GPG Key ID: 2C5AC035A7068E44
2 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,6 @@ public class CurveRenderState {
/** /**
* Set the width and height of the container that Curves get drawn into. * Set the width and height of the container that Curves get drawn into.
* Should be called before any curves are drawn. * Should be called before any curves are drawn.
* @param width the container width
* @param height the container height
* @param circleDiameter the circle diameter * @param circleDiameter the circle diameter
*/ */
public static void init(float circleDiameter) { public static void init(float circleDiameter) {

View File

@ -25,6 +25,7 @@ import itdelatrisu.opsu.downloads.DownloadList;
import itdelatrisu.opsu.downloads.DownloadNode; import itdelatrisu.opsu.downloads.DownloadNode;
import itdelatrisu.opsu.downloads.Updater; import itdelatrisu.opsu.downloads.Updater;
import itdelatrisu.opsu.render.CurveRenderState; import itdelatrisu.opsu.render.CurveRenderState;
import itdelatrisu.opsu.render.FrameBufferCache;
import itdelatrisu.opsu.replay.PlaybackSpeed; import itdelatrisu.opsu.replay.PlaybackSpeed;
import itdelatrisu.opsu.ui.Cursor; import itdelatrisu.opsu.ui.Cursor;
import itdelatrisu.opsu.ui.Fonts; import itdelatrisu.opsu.ui.Fonts;
@ -295,6 +296,7 @@ public class DisplayContainer implements ErrorDumpable, SkinChangedListener {
GameImage.destroyImages(); GameImage.destroyImages();
GameData.Grade.destroyImages(); GameData.Grade.destroyImages();
Beatmap.destroyBackgroundImageCache(); Beatmap.destroyBackgroundImageCache();
FrameBufferCache.shutdown();
} }
public void teardownAL() { public void teardownAL() {