Skip to content

Commit

Permalink
Minor changes to make the PR more consistent with the rest of the
Browse files Browse the repository at this point in the history
codebase
  • Loading branch information
crykn committed Mar 2, 2024
1 parent cfe2e03 commit 2a283a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/main/java/de/eskalon/commons/screen/ManagedScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@

package de.eskalon.commons.screen;

import javax.annotation.Nullable;

import com.badlogic.gdx.Application;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.Null;
import com.badlogic.gdx.utils.viewport.Viewport;

import de.eskalon.commons.core.ManagedGame;
Expand Down Expand Up @@ -215,9 +216,9 @@ public Array<InputProcessor> getInputProcessors() {

/**
* @return the color to clear the screen with before the rendering is
* started, or null to not clear the screen
* started, or {@code null} to not clear the screen
*/
public @Null Color getClearColor() {
public @Nullable Color getClearColor() {
return Color.BLACK;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@

package de.eskalon.commons.screen.transition;

import javax.annotation.Nullable;

import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.utils.Disposable;

import com.badlogic.gdx.utils.Null;
import de.eskalon.commons.screen.ManagedScreen;
import de.eskalon.commons.screen.ScreenManager;

Expand Down Expand Up @@ -116,9 +117,9 @@ public abstract void render(float delta, TextureRegion lastScreen,

/**
* @return the color to clear the screen with before the rendering is
* started, or null to not clear the screen
* started, or {@code null} to not clear the screen
*/
public @Null Color getClearColor() {
public @Nullable Color getClearColor() {
return Color.BLACK;
}

Expand Down

0 comments on commit 2a283a7

Please sign in to comment.