.class public Lcom/badlogic/gdx/graphics/glutils/HdpiUtils;
.super Ljava/lang/Object;
.source "HdpiUtils.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 28
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static a(I)I
    .locals 1

    .line 72
    sget-object v0, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;

    invoke-interface {v0}, Lcom/badlogic/gdx/Graphics;->c()I

    move-result v0

    mul-int p0, p0, v0

    int-to-float p0, p0

    sget-object v0, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;

    invoke-interface {v0}, Lcom/badlogic/gdx/Graphics;->a()I

    move-result v0

    int-to-float v0, v0

    div-float/2addr p0, v0

    float-to-int p0, p0

    return p0
.end method

.method public static a(IIII)V
    .locals 2

    .line 43
    sget-object v0, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;

    invoke-interface {v0}, Lcom/badlogic/gdx/Graphics;->a()I

    move-result v0

    sget-object v1, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;

    invoke-interface {v1}, Lcom/badlogic/gdx/Graphics;->c()I

    move-result v1

    if-ne v0, v1, :cond_1

    sget-object v0, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;

    .line 44
    invoke-interface {v0}, Lcom/badlogic/gdx/Graphics;->b()I

    move-result v0

    sget-object v1, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;

    invoke-interface {v1}, Lcom/badlogic/gdx/Graphics;->d()I

    move-result v1

    if-eq v0, v1, :cond_0

    goto :goto_0

    .line 47
    :cond_0
    sget-object v0, Lcom/badlogic/gdx/Gdx;->e:Lcom/badlogic/gdx/graphics/GL20;

    invoke-interface {v0, p0, p1, p2, p3}, Lcom/badlogic/gdx/graphics/GL20;->glViewport(IIII)V

    goto :goto_1

    .line 45
    :cond_1
    :goto_0
    sget-object v0, Lcom/badlogic/gdx/Gdx;->e:Lcom/badlogic/gdx/graphics/GL20;

    invoke-static {p0}, Lcom/badlogic/gdx/graphics/glutils/HdpiUtils;->a(I)I

    move-result p0

    invoke-static {p1}, Lcom/badlogic/gdx/graphics/glutils/HdpiUtils;->b(I)I

    move-result p1

    invoke-static {p2}, Lcom/badlogic/gdx/graphics/glutils/HdpiUtils;->a(I)I

    move-result p2

    invoke-static {p3}, Lcom/badlogic/gdx/graphics/glutils/HdpiUtils;->b(I)I

    move-result p3

    invoke-interface {v0, p0, p1, p2, p3}, Lcom/badlogic/gdx/graphics/GL20;->glViewport(IIII)V

    :goto_1
    return-void
.end method

.method public static b(I)I
    .locals 1

    .line 80
    sget-object v0, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;

    invoke-interface {v0}, Lcom/badlogic/gdx/Graphics;->d()I

    move-result v0

    mul-int p0, p0, v0

    int-to-float p0, p0

    sget-object v0, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;

    invoke-interface {v0}, Lcom/badlogic/gdx/Graphics;->b()I

    move-result v0

    int-to-float v0, v0

    div-float/2addr p0, v0

    float-to-int p0, p0

    return p0
.end method
