mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
Fix size test for bitmap caching
This commit is contained in:
parent
21f5f329a0
commit
08ceeb85b7
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
/* -*- fill-column: 77; compile-command: "make TARGET_OS=wince DEBUG=TRUE"; -*- */
|
||||
/*
|
||||
* Copyright 2000-2008 by Eric House (xwords@eehouse.org). All rights reserved.
|
||||
* Copyright 2000-2009 by Eric House (xwords@eehouse.org). All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -627,7 +627,7 @@ checkBMCache( CEDrawCtx* dctx, HDC hdc, const XP_UCHAR* letters, XP_U16 index,
|
|||
|
||||
XP_ASSERT( index < 2 );
|
||||
|
||||
if ( len < sizeof( entry->letters ) ) {
|
||||
if ( len <= sizeof( entry->letters ) ) {
|
||||
XP_U16 ii;
|
||||
for ( ii = 0, entry = dctx->bmCache; ii < VSIZE(dctx->bmCache);
|
||||
++ii, ++entry ) {
|
||||
|
@ -970,7 +970,7 @@ DRAW_FUNC_NAME(drawCell)( DrawCtx* p_dctx, const XP_Rect* xprect,
|
|||
/* always init to silence compiler warning */
|
||||
foreColorIndx = getPlayerColor(owner);
|
||||
|
||||
if ( !isDragSrc && !!letters ) {
|
||||
if ( !isDragSrc && (!!letters || !!bitmaps) ) {
|
||||
if ( isPending ) {
|
||||
bkIndex = CE_BLACK_COLOR;
|
||||
foreColorIndx = CE_WHITE_COLOR;
|
||||
|
|
Loading…
Add table
Reference in a new issue