Skip to content

Commit

Permalink
Avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sh5i committed May 21, 2021
1 parent d167726 commit c9ae955
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package jp.ac.titech.itpro.sdl.die;

import android.annotation.SuppressLint;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.util.Log;
Expand Down Expand Up @@ -63,6 +64,7 @@ public boolean onCreateOptionsMenu(Menu menu) {
return true;
}

@SuppressLint("NonConstantResourceId")
@Override
public boolean onOptionsItemSelected(MenuItem item) {
Log.d(TAG, "onOptionsItemSelected");
Expand All @@ -77,6 +79,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
return true;
}

@SuppressLint("NonConstantResourceId")
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
switch (seekBar.getId()) {
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/java/jp/ac/titech/itpro/sdl/die/SimpleRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ public class SimpleRenderer implements GLSurfaceView.Renderer {

SimpleRenderer() {}

void setObj(Obj obj, float x, float y, float z) {
public void setObj(Obj obj, float x, float y, float z) {
this.obj = obj;
this.x = 0;
this.y = 0;
this.z = 0;
this.x = x;
this.y = y;
this.z = z;
}

void setObj(Obj obj) {
public void setObj(Obj obj) {
setObj(obj, 0, 0, 0);
}

Expand Down

0 comments on commit c9ae955

Please sign in to comment.