mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 21:40:30 -07:00
HD Resize redraw
This commit is contained in:
parent
b3c2adc51f
commit
4f8bf464c5
3 changed files with 14 additions and 19 deletions
|
|
@ -182,6 +182,7 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
|||
|
||||
@OriginalMember(owner = "client!qh", name = "a", descriptor = "(Z)V")
|
||||
public static void method3662() {
|
||||
System.out.println("Moving...");
|
||||
@Pc(8) Container local8;
|
||||
if (fullScreenFrame != null) {
|
||||
local8 = fullScreenFrame;
|
||||
|
|
@ -514,9 +515,10 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
|||
canvasScale = getCurrentDevice().getDefaultConfiguration().getDefaultTransform().getScaleX();
|
||||
if (frame != null && fullScreenFrame == null) {
|
||||
@Pc(84) Insets insets = frame.getInsets();
|
||||
canvas.setLocation(insets.left + leftMargin, topMargin + insets.top);
|
||||
// TODO: Add a flag to ignore this.
|
||||
//canvas.setLocation(insets.left + leftMargin, topMargin + insets.top);
|
||||
} else {
|
||||
canvas.setLocation(leftMargin, topMargin);
|
||||
//canvas.setLocation(leftMargin, topMargin);
|
||||
}
|
||||
}
|
||||
this.mainRedraw();
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ public final class GlRenderer {
|
|||
try {
|
||||
pixelData = readPixels();
|
||||
drawable.swapBuffers();
|
||||
} catch (@Pc(3) Exception local3) {*,
|
||||
} catch (@Pc(3) Exception local3) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue