Skip to content

Commit

Permalink
[wiki-app] Updates from Symbio
Browse files Browse the repository at this point in the history
1. Fixed a problem that some search result was left on the screen when displaying the "type a word" message
2. Fixed the problem of inverting the links at simulator
3. Enable the continuous deletion when holding the backspace key

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information
hxw committed Jun 18, 2010
1 parent 92cd140 commit f552a0d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions wiki-app/glyph.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@ int render_string_and_clear(const int font, int start_x,
{
if (clear_start_x < start_x)
guilib_clear_area(clear_start_x, clear_start_y, start_x - 1,
clear_end_y < start_x + height ? clear_end_y : start_x + height - 1);
clear_end_y < start_y + height ? clear_end_y : start_y + height - 1);
if (clear_end_x >= width)
guilib_clear_area(width, clear_start_y, clear_end_x,
clear_end_y < start_x + height ? clear_end_y : start_x + height - 1);
clear_end_y < start_y + height ? clear_end_y : start_y + height - 1);
if (clear_end_y >= start_y + height)
clear_start_y = start_x + height;
clear_start_y = start_y + height;
else
clear_start_x = -1;
}
Expand Down
1 change: 1 addition & 0 deletions wiki-app/lcd_buf_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2208,6 +2208,7 @@ void invert_link_area(int article_link_number)
if (start_y >= 0 || end_y < LCD_HEIGHT_LINES)
{
// guilib_invert_area will only invert (x, y) within LCD range
guilib_fb_lock();
guilib_invert_area(start_x, start_y, end_x, end_y);
guilib_invert_area(start_x, start_y, start_x, start_y);
guilib_invert_area(start_x, end_y, start_x, end_y);
Expand Down
6 changes: 3 additions & 3 deletions wiki-app/wikilib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,6 @@ int wikilib_run(void)
sleep = 0;
}

#ifdef INCLUDED_FROM_KERNEL
time_now = get_time_ticks();
if(display_mode == DISPLAY_MODE_INDEX)
{
Expand Down Expand Up @@ -1423,8 +1422,6 @@ int wikilib_run(void)
}
}

#endif

if (!more_events && display_mode == DISPLAY_MODE_INDEX && fetch_search_result(0, 0, 0))
{
sleep = 0;
Expand Down Expand Up @@ -1475,6 +1472,9 @@ int wikilib_run(void)
last_event_time = get_time_ticks();
break;
case WL_INPUT_EV_TYPE_TOUCH:
#ifndef INCLUDED_FROM_KERNEL
ev.touch_event.ticks = get_time_ticks();
#endif
handle_touch(&ev);
last_event_time = ev.touch_event.ticks;
break;
Expand Down

0 comments on commit f552a0d

Please sign in to comment.