mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-24 06:47:53 -05:00
Fixed type conversion ambiguity
This commit is contained in:
@ -26,8 +26,8 @@
|
||||
namespace {
|
||||
QImage LoadTexture(const u8* src, const Pica::Texture::TextureInfo& info) {
|
||||
QImage decoded_image(info.width, info.height, QImage::Format_ARGB32);
|
||||
for (int y = 0; y < info.height; ++y) {
|
||||
for (int x = 0; x < info.width; ++x) {
|
||||
for (u32 y = 0; y < info.height; ++y) {
|
||||
for (u32 x = 0; x < info.width; ++x) {
|
||||
Math::Vec4<u8> color = Pica::Texture::LookupTexture(src, x, y, info, true);
|
||||
decoded_image.setPixel(x, y, qRgba(color.r(), color.g(), color.b(), color.a()));
|
||||
}
|
||||
|
@ -273,7 +273,8 @@ void GraphicsSurfaceWidget::Pick(int x, int y) {
|
||||
surface_picker_x_control->setValue(x);
|
||||
surface_picker_y_control->setValue(y);
|
||||
|
||||
if (x < 0 || x >= surface_width || y < 0 || y >= surface_height) {
|
||||
if (x < 0 || x >= static_cast<int>(surface_width) || y < 0 ||
|
||||
y >= static_cast<int>(surface_height)) {
|
||||
surface_info_label->setText(tr("Pixel out of bounds"));
|
||||
surface_info_label->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user