Skip to content

Commit

Permalink
Drop model : take bottom holdings into account to paintcells for the …
Browse files Browse the repository at this point in the history
…grid
  • Loading branch information
fhoudebert committed Apr 25, 2024
1 parent a43e1fb commit fa3bf41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/games/chessbase/grid-board-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
paintCells: function(spec,ctx,images,channel) {
var cSize = this.cbCSize(spec);
var getCoords=spec.coordsFn(spec);
for(var row=0;row<NBROWS;row++) {
for(var row=0;row<(NBROWS);row++) {
for(var col=0;col<NBCOLS;col++) {
var pos = this.mViewAs==1 ?
col+row*NBCOLS :
Expand All @@ -214,7 +214,7 @@
var yCenter=coords.y;
var cx=cSize.cx;
var cy=cSize.cy;

spec.paintCell.call(this,spec,ctx,images,channel,cellType,xCenter,yCenter,cx,cy);
}
}
Expand Down

0 comments on commit fa3bf41

Please sign in to comment.