image viewer 矩阵浏览缩略图不能下翻到最后一行

阅读 125

2023-03-12


按向下方向键,当下方有图片时,会切换到下方的那一张图片,当下方没有图片时,返回到第一行,原始设计是这样,要改成
可以看到最后一行的图片,可以修改如下:

将gui_asyncdynamic_matrix_menu_goto_next_row()中

/* to support that a row is not full of items */

if (m->highlighted_item > (m->n_items - 1)) /* revert */

{

locate_highlight = 1;

m->highlighted_row = 0;

m->highlighted_item = m->highlighted_column;

m->first_displayed_row = 0;

}

修改为:

/* to support that a row is not full of items */

if (m->highlighted_item > (m->n_items - 1)) /* revert */

{

m->highlighted_item = m->n_items - 1;

}

精彩评论(0)

0 0 举报