Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Somewhat fixed resizing (DAMMIT!!!)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-- committed Jan 17, 2013
1 parent 718f01a commit ffca5d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/com/androidemu/EmulatorActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ private boolean loadROM(String fname)
private boolean loadROM(String fname, boolean failPrompt)
{
cfg.setLastRunningGame(null);
emulatorView.setActualSize(Emulator.VIDEO_W, Emulator.VIDEO_H);

unloadROM();
if (!emulator.loadROM(fname) && failPrompt)
Expand Down
8 changes: 3 additions & 5 deletions src/com/androidemu/gba/EmulatorView.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ public void setEmulator(Emulator e)

public void setScalingMode(Scaling mode)
{
if (scalingMode != mode)
{
scalingMode = mode;
updateSurfaceSize();
}
scalingMode = mode;
requestLayout();
updateSurfaceSize();
}

public void onImageUpdate(int[] data)
Expand Down

0 comments on commit ffca5d6

Please sign in to comment.