Skip to content

Commit

Permalink
Merge branch 'PojavLauncherTeam:v3_openjdk' into v3_zink_updated
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 authored Aug 15, 2023
2 parents e20cec7 + 26e271f commit c82cf24
Show file tree
Hide file tree
Showing 7 changed files with 10,718 additions and 345 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private void init(){
protected synchronized void onDraw(Canvas canvas) {
super.onDraw(canvas);
mTextPaint.setTextSize((float) ((getHeight()- getPaddingBottom() - getPaddingTop()) * 0.55));
int xPos = (int) Math.max(Math.min(getProgress() * getWidth() / getMax(), getWidth() - mTextPaint.measureText(mText)) - mTextPadding, mTextPadding);
int xPos = (int) Math.max(Math.min((getProgress() * getWidth() / getMax()) + mTextPadding, getWidth() - mTextPaint.measureText(mText) - mTextPadding) , mTextPadding);
int yPos = (int) ((getHeight() / 2) - ((mTextPaint.descent() + mTextPaint.ascent()) / 2)) ;

canvas.drawText(mText, xPos, yPos, mTextPaint);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,12 @@ public void adjustMouseSpeedLive() {
sb.setMax(275);
tmpMouseSpeed = (int) ((LauncherPreferences.PREF_MOUSESPEED*100));
sb.setProgress(tmpMouseSpeed-25);
tv.setText(getString(R.string.percent_format, tmpGyroSensitivity));
tv.setText(getString(R.string.percent_format, tmpMouseSpeed));
sb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekBar, int i, boolean b) {
tmpMouseSpeed = i+25;
tv.setText(getString(R.string.percent_format, tmpGyroSensitivity));
tv.setText(getString(R.string.percent_format, tmpMouseSpeed));
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ public static int getFreeDeviceMemory(Context ctx){

public static int getDisplayFriendlyRes(int displaySideRes, float scaling){
displaySideRes *= scaling;
if(displaySideRes % 2 != 0) displaySideRes ++;
if(displaySideRes % 2 != 0) displaySideRes --;
return displaySideRes;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,9 @@ public static List<String> getJavaArgs(Context ctx, String runtimeHome, String u

"-Dorg.lwjgl.vulkan.libname=libvulkan.so",
//LWJGL 3 DEBUG FLAGS
"-Dorg.lwjgl.util.NoChecks=true",
//"-Dorg.lwjgl.util.Debug=true",
//"-Dorg.lwjgl.util.DebugFunctions=true",
//"-Dorg.lwjgl.util.DebugLoader=true",
"-Dorg.lwjgl.util.NoChecks=true",
// GLFW Stub width height
"-Dglfwstub.windowWidth=" + Tools.getDisplayFriendlyRes(currentDisplayMetrics.widthPixels, LauncherPreferences.PREF_SCALE_FACTOR/100F),
"-Dglfwstub.windowHeight=" + Tools.getDisplayFriendlyRes(currentDisplayMetrics.heightPixels, LauncherPreferences.PREF_SCALE_FACTOR/100F),
Expand Down
98 changes: 0 additions & 98 deletions app_pojavlauncher/src/main/res/values-en-rPS/strings.xml

This file was deleted.

Loading

0 comments on commit c82cf24

Please sign in to comment.