mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
misc: change unsigned int cast
This commit is contained in:
@@ -134,7 +134,7 @@ void DropDownChoiceListBase::drawIcon(DC& dc, int x, int y, size_t item, bool se
|
|||||||
image_id = getChoice(item)->first_id;
|
image_id = getChoice(item)->first_id;
|
||||||
}
|
}
|
||||||
// draw image
|
// draw image
|
||||||
if ((unsigned int) image_id < style().thumbnails.size()) {
|
if ((unsigned) image_id < style().thumbnails.size()) {
|
||||||
auto const& thumbnail = style().thumbnails[image_id];
|
auto const& thumbnail = style().thumbnails[image_id];
|
||||||
if (thumbnail.status == THUMB_OK)
|
if (thumbnail.status == THUMB_OK)
|
||||||
dc.DrawBitmap(thumbnail.bitmap, x, y);
|
dc.DrawBitmap(thumbnail.bitmap, x, y);
|
||||||
|
|||||||
Reference in New Issue
Block a user