From 1f1025dcce63919f3de47ae27edd3ad225caa134 Mon Sep 17 00:00:00 2001 From: Recrown Date: Tue, 4 Sep 2018 04:59:43 -0500 Subject: [PATCH] minor aesthetic change; pcm obtainer tweaked; --- .../src/zero1hd/rhythmbullet/desktop/audio/PCMObtainer.java | 4 ++-- .../zero1hd/rhythmbullet/desktop/screens/main/MainPage.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/desktop/src/zero1hd/rhythmbullet/desktop/audio/PCMObtainer.java b/desktop/src/zero1hd/rhythmbullet/desktop/audio/PCMObtainer.java index fccd51a..675a62d 100755 --- a/desktop/src/zero1hd/rhythmbullet/desktop/audio/PCMObtainer.java +++ b/desktop/src/zero1hd/rhythmbullet/desktop/audio/PCMObtainer.java @@ -110,8 +110,8 @@ public class PCMObtainer implements Observer, PCMSystem { private boolean synchronizeBufferWithPlayback() { int bufferPos = calcBufferPosition(); - if (bufferPos <= playingBuffer.limit() && bufferPos >= 0) { - synchronized (this) { + synchronized (this) { + if (bufferPos <= playingBuffer.limit() && bufferPos >= 0) { playingBuffer.position(bufferPos); windowsRead = (int) ((mc.getCurrentPosition() * sampleRate) / windowSize); return true; diff --git a/desktop/src/zero1hd/rhythmbullet/desktop/screens/main/MainPage.java b/desktop/src/zero1hd/rhythmbullet/desktop/screens/main/MainPage.java index 1b9196b..3590ad6 100755 --- a/desktop/src/zero1hd/rhythmbullet/desktop/screens/main/MainPage.java +++ b/desktop/src/zero1hd/rhythmbullet/desktop/screens/main/MainPage.java @@ -56,9 +56,9 @@ public class MainPage extends Page implements Observer { dhv.setPosition(0, (int) ((getHeight() - dhv.getHeight())/2f)); title = new Image(assetManager.get("title.png", Texture.class)); - title.setScale((getHeight()/3f - 14)/title.getHeight()); - if (title.getWidth()*title.getScaleX() > getWidth() - 30) { - title.setScale((getWidth() - 30)/title.getWidth()*getScaleX()); + title.setScale((getHeight()/3f)/title.getHeight()); + if (title.getWidth()*title.getScaleX() > getWidth() - getWidth()*0.075f) { + title.setScale((getWidth()*(1f-0.075f))/title.getWidth()*getScaleX()); } title.setPosition((getWidth()-title.getWidth()*title.getScaleX())/2f, (getHeight()-title.getHeight()*title.getScaleY())/2f); addActor(title);