mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-21 02:15:14 -06:00
Permanent fix for inv sprite offset
Regression was caused by some Playground work to generate high-res sprites, and it needed a higher canvas size. (Thanks Woahscam!)
This commit is contained in:
parent
844acc7db8
commit
efba04cbe4
2 changed files with 2 additions and 2 deletions
|
|
@ -693,7 +693,7 @@ public class Cs1ScriptRunner {
|
|||
} else if (component == MiniMenu.pressedInventoryComponent && local270 == MiniMenu.anInt5444) {
|
||||
sprite.renderAlpha(x, y, 128);
|
||||
} else {
|
||||
sprite.render(x - 2, y); // TODO: x - 2 is a temp fix! look at commit b57d5a00315df977aba3d60f4dce7947a5acf909
|
||||
sprite.render(x, y);
|
||||
// downscale:
|
||||
// sprite.renderResized(x, y, 36, 32);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ public final class Inv extends Node {
|
|||
@Pc(133) SoftwareSprite canvas = new SoftwareSprite(canvasWidth, canvasHeight);
|
||||
SoftwareRaster.setSize(canvas.pixels, canvasWidth, canvasHeight);
|
||||
Rasteriser.prepare();
|
||||
Rasteriser.setBounds(canvasWidth / 2, canvasHeight / 2);
|
||||
Rasteriser.setBounds(16, 16); // canvasWidth / 2, canvasHeight / 2);
|
||||
Rasteriser.jagged = false;
|
||||
|
||||
@Pc(145) int zoom = objType.zoom2d; // / 4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue