ntk 7.3.2 → 7.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2965,15 +2965,21 @@ class RenderingContext2d {
2965
2965
  rect.h,
2966
2966
  ]);
2967
2967
  }
2968
+ // The scratch mask is surface-sized and surface-aligned — the coverage
2969
+ // went into it at (dx, dy) — and so is a gradient source, so both are
2970
+ // sampled at the destination offset. Reading either from (0, 0) draws a
2971
+ // dw x dh window out of the wrong part of a full-surface picture: for
2972
+ // the mask that is the region just cleared to zero, so nothing paints at
2973
+ // all unless dx and dy are both zero.
2968
2974
  R.Composite(
2969
2975
  op,
2970
2976
  this._backgroundPicture.id,
2971
2977
  this.fillMask.id,
2972
2978
  this.picture.id,
2973
- 0,
2974
- 0,
2975
- 0,
2976
- 0,
2979
+ dx,
2980
+ dy,
2981
+ dx,
2982
+ dy,
2977
2983
  dx,
2978
2984
  dy,
2979
2985
  dw,
@@ -2996,13 +3002,16 @@ class RenderingContext2d {
2996
3002
  rect.h,
2997
3003
  ]);
2998
3004
  }
3005
+ // the source is a 1x1 repeating solid (offset irrelevant) or the fill
3006
+ // picture, which for a gradient is surface-aligned: same offset as the
3007
+ // destination, exactly as in _fillPolys
2999
3008
  R.Composite(
3000
3009
  op,
3001
3010
  this._coverageSource().id,
3002
3011
  picture.id,
3003
3012
  this.picture.id,
3004
- 0,
3005
- 0,
3013
+ dx,
3014
+ dy,
3006
3015
  mx,
3007
3016
  my,
3008
3017
  dx,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ntk",
3
- "version": "7.3.2",
3
+ "version": "7.3.3",
4
4
  "description": "Desktop UI toolkit for X11 with canvas-like 2d and OpenGL rendering",
5
5
  "author": "Andrey Sidorov <sidorares@yandex.ru>",
6
6
  "license": "MIT",