mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
fix signed bug that broke scrolling in ask dialog
This commit is contained in:
parent
a898afdf44
commit
7ef601b48a
1 changed files with 8 additions and 5 deletions
|
@ -1182,8 +1182,10 @@ saveOpenGame( PalmAppGlobals* globals )
|
||||||
XP_UCHAR* dictName;
|
XP_UCHAR* dictName;
|
||||||
char namebuf[MAX_GAMENAME_LENGTH];
|
char namebuf[MAX_GAMENAME_LENGTH];
|
||||||
|
|
||||||
board_hideTray( globals->game.board ); /* so won't be visible when
|
/* if ( server_countNonRobotPlayers() > 1 ) { */
|
||||||
next opened */
|
board_hideTray( globals->game.board ); /* so won't be visible when
|
||||||
|
next opened */
|
||||||
|
/* } */
|
||||||
memStream = mem_stream_make( MEMPOOL globals->vtMgr, globals, 0,
|
memStream = mem_stream_make( MEMPOOL globals->vtMgr, globals, 0,
|
||||||
writeToDb );
|
writeToDb );
|
||||||
stream_open( memStream );
|
stream_open( memStream );
|
||||||
|
@ -2650,7 +2652,7 @@ tryGrowAskToFit( FormPtr form, FieldPtr field, XP_UCHAR* str )
|
||||||
static Boolean
|
static Boolean
|
||||||
handleScrollInAsk( EventPtr event )
|
handleScrollInAsk( EventPtr event )
|
||||||
{
|
{
|
||||||
Int16 linesToScroll = 0;
|
UInt16 linesToScroll = 0;
|
||||||
Boolean scrollFromButton = false;
|
Boolean scrollFromButton = false;
|
||||||
Boolean result = true;
|
Boolean result = true;
|
||||||
WinDirectionType direction = 5;
|
WinDirectionType direction = 5;
|
||||||
|
@ -2686,8 +2688,9 @@ handleScrollInAsk( EventPtr event )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case sclRepeatEvent: {
|
case sclRepeatEvent: {
|
||||||
short newVal = event->data.sclExit.newValue;
|
XP_S16 newVal = event->data.sclRepeat.newValue;
|
||||||
linesToScroll = XP_ABS(newVal - globals->prevScroll);
|
XP_S16 tmp = newVal - globals->prevScroll;
|
||||||
|
linesToScroll = XP_ABS( tmp );
|
||||||
XP_ASSERT( linesToScroll != 0 );
|
XP_ASSERT( linesToScroll != 0 );
|
||||||
direction = newVal > globals->prevScroll? winDown: winUp;
|
direction = newVal > globals->prevScroll? winDown: winUp;
|
||||||
globals->prevScroll = newVal;
|
globals->prevScroll = newVal;
|
||||||
|
|
Loading…
Reference in a new issue