Skip to content

Commit

Permalink
Adjust coloring alpha setting to better match Java client
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Jan 9, 2025
1 parent f224b79 commit e82524e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog

1.49

*web client*
- improved lighting effects

*bug fixes*
- fixed invalid head outfit index of Mr Ross

Expand Down
4 changes: 2 additions & 2 deletions src/js/stendhal/ui/ViewPort.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
* (C) Copyright 2003-2024 - Stendhal *
* (C) Copyright 2003-2025 - Stendhal *
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
Expand Down Expand Up @@ -200,7 +200,7 @@ export class ViewPort {
this.ctx.save();
// FIXME: is this the appropriate alpha level to use? "color_method" value from server doesn't
// appear to include alpha information
this.ctx.globalAlpha = 0.5;
this.ctx.globalAlpha = 0.75;
this.ctx.globalCompositeOperation = (this.colorMethod || this.ctx.globalCompositeOperation) as GlobalCompositeOperation;
this.ctx.fillStyle = this.HSLFilter;
this.ctx.fillRect(this.offsetX, this.offsetY, this.ctx.canvas.width, this.ctx.canvas.height);
Expand Down

0 comments on commit e82524e

Please sign in to comment.