Skip to content

Commit fa3bf41

Browse files
committed
Drop model : take bottom holdings into account to paintcells for the grid
1 parent a43e1fb commit fa3bf41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/games/chessbase/grid-board-view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
paintCells: function(spec,ctx,images,channel) {
204204
var cSize = this.cbCSize(spec);
205205
var getCoords=spec.coordsFn(spec);
206-
for(var row=0;row<NBROWS;row++) {
206+
for(var row=0;row<(NBROWS);row++) {
207207
for(var col=0;col<NBCOLS;col++) {
208208
var pos = this.mViewAs==1 ?
209209
col+row*NBCOLS :
@@ -214,7 +214,7 @@
214214
var yCenter=coords.y;
215215
var cx=cSize.cx;
216216
var cy=cSize.cy;
217-
217+
218218
spec.paintCell.call(this,spec,ctx,images,channel,cellType,xCenter,yCenter,cx,cy);
219219
}
220220
}

0 commit comments

Comments
 (0)