mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
invalidate divider when first touched so that it's drawn in-drag immediately.
This commit is contained in:
parent
72ada6b1a8
commit
42e10c2ac2
1 changed files with 2 additions and 1 deletions
|
@ -68,6 +68,7 @@ ddStartTray( BoardCtxt* board, XP_U16 x, XP_U16 y )
|
||||||
XP_S16 selPlayer = board->selPlayer;
|
XP_S16 selPlayer = board->selPlayer;
|
||||||
if ( onDivider ) {
|
if ( onDivider ) {
|
||||||
ds->dividerOnly = XP_TRUE;
|
ds->dividerOnly = XP_TRUE;
|
||||||
|
board->dividerInvalid = XP_TRUE;
|
||||||
ds->start.u.tray.index = board->dividerLoc[selPlayer];
|
ds->start.u.tray.index = board->dividerLoc[selPlayer];
|
||||||
} else {
|
} else {
|
||||||
Tile tile;
|
Tile tile;
|
||||||
|
@ -293,7 +294,7 @@ dragDropContinueImpl( BoardCtxt* board, XP_U16 xx, XP_U16 yy,
|
||||||
*onWhichP = newInfo.obj;
|
*onWhichP = newInfo.obj;
|
||||||
|
|
||||||
if ( ds->dividerOnly ) {
|
if ( ds->dividerOnly ) {
|
||||||
if ( OBJ_NONE != newInfo.obj ) {
|
if ( OBJ_TRAY == newInfo.obj ) {
|
||||||
XP_U16 newloc;
|
XP_U16 newloc;
|
||||||
XP_U16 scale = board->trayScaleH;
|
XP_U16 scale = board->trayScaleH;
|
||||||
xx -= board->trayBounds.left;
|
xx -= board->trayBounds.left;
|
||||||
|
|
Loading…
Add table
Reference in a new issue