mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Fix last commit and a couple style changes.
This commit is contained in:
parent
a396008bf6
commit
7bb23d15bd
@ -342,17 +342,16 @@ QRegion GridView::visualRegionForSelection(const QItemSelection &selection) cons
|
||||
{
|
||||
QRegion region;
|
||||
QItemSelectionRange range;
|
||||
int i = 0;
|
||||
int i;
|
||||
|
||||
for (i; i < selection.size(); i++)
|
||||
for (i = 0; i < selection.size(); i++)
|
||||
{
|
||||
int row;
|
||||
range = selection.at(i);
|
||||
row = range.top();
|
||||
for (row; row <= range.bottom(); ++row)
|
||||
int row;
|
||||
for (row = range.top(); row <= range.bottom(); row++)
|
||||
{
|
||||
int column = range.left();
|
||||
for (column; column < range.right(); ++column)
|
||||
int column;
|
||||
for (column = range.left(); column < range.right(); column++)
|
||||
{
|
||||
QModelIndex index = model()->index(row, column, rootIndex());
|
||||
region += visualRect(index);
|
||||
|
@ -31,7 +31,7 @@ extern "C" {
|
||||
#include <string/stdstring.h>
|
||||
#include <file/file_path.h>
|
||||
#include <retro_miscellaneous.h>
|
||||
};
|
||||
}
|
||||
|
||||
#define CORE_NAME_COLUMN 0
|
||||
#define CORE_VERSION_COLUMN 1
|
||||
|
@ -655,7 +655,8 @@ void MainWindow::updateVisibleItems() {
|
||||
if (m_viewType == VIEW_TYPE_ICONS)
|
||||
{
|
||||
QVector<QModelIndex> indexes = m_gridView->visibleIndexes();
|
||||
for (int i = 0; i < indexes.size(); i++)
|
||||
int i;
|
||||
for (i = 0; i < indexes.size(); i++)
|
||||
{
|
||||
m_playlistModel->loadThumbnail(m_proxyModel->mapToSource(indexes.at(i)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user