summaryrefslogtreecommitdiff
path: root/src/citra_qt
diff options
context:
space:
mode:
authorGravatar Rohit Nirmal2015-10-06 21:28:19 -0500
committerGravatar Rohit Nirmal2015-10-06 22:16:15 -0500
commit32391cffdda059f23258b535f386732084d1cac9 (patch)
tree500eb7180aae531f23d29bec2ea054c661c01cc5 /src/citra_qt
parentMerge pull request #1164 from kemenaran/qt-high-dpi-fixes (diff)
downloadyuzu-32391cffdda059f23258b535f386732084d1cac9.tar.gz
yuzu-32391cffdda059f23258b535f386732084d1cac9.tar.xz
yuzu-32391cffdda059f23258b535f386732084d1cac9.zip
Silence -Wsign-compare warnings.
Diffstat (limited to 'src/citra_qt')
-rw-r--r--src/citra_qt/debugger/graphics_vertex_shader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics_vertex_shader.cpp
index f915d2bab..a5a5fe6b0 100644
--- a/src/citra_qt/debugger/graphics_vertex_shader.cpp
+++ b/src/citra_qt/debugger/graphics_vertex_shader.cpp
@@ -294,16 +294,16 @@ QVariant GraphicsVertexShaderModel::data(const QModelIndex& index, int role) con
294 { 294 {
295 // Highlight current instruction 295 // Highlight current instruction
296 int current_record_index = par->cycle_index->value(); 296 int current_record_index = par->cycle_index->value();
297 if (current_record_index < par->debug_data.records.size()) { 297 if (current_record_index < static_cast<int>(par->debug_data.records.size())) {
298 const auto& current_record = par->debug_data.records[current_record_index]; 298 const auto& current_record = par->debug_data.records[current_record_index];
299 if (index.row() == current_record.instruction_offset) { 299 if (index.row() == static_cast<int>(current_record.instruction_offset)) {
300 return QColor(255, 255, 63); 300 return QColor(255, 255, 63);
301 } 301 }
302 } 302 }
303 303
304 // Use a grey background for instructions which have no debug data associated to them 304 // Use a grey background for instructions which have no debug data associated to them
305 for (const auto& record : par->debug_data.records) 305 for (const auto& record : par->debug_data.records)
306 if (index.row() == record.instruction_offset) 306 if (index.row() == static_cast<int>(record.instruction_offset))
307 return QVariant(); 307 return QVariant();
308 308
309 return QBrush(QColor(192, 192, 192)); 309 return QBrush(QColor(192, 192, 192));
@@ -494,7 +494,7 @@ void GraphicsVertexShaderWidget::Reload(bool replace_vertex_data, void* vertex_d
494 debug_data = Pica::Shader::ProduceDebugInfo(input_vertex, num_attributes, shader_config, shader_setup); 494 debug_data = Pica::Shader::ProduceDebugInfo(input_vertex, num_attributes, shader_config, shader_setup);
495 495
496 // Reload widget state 496 // Reload widget state
497 for (unsigned int attr = 0; attr < num_attributes; ++attr) { 497 for (int attr = 0; attr < num_attributes; ++attr) {
498 unsigned source_attr = shader_config.input_register_map.GetRegisterForAttribute(attr); 498 unsigned source_attr = shader_config.input_register_map.GetRegisterForAttribute(attr);
499 input_data_mapping[source_attr]->setText(QString("-> v%1").arg(attr)); 499 input_data_mapping[source_attr]->setText(QString("-> v%1").arg(attr));
500 input_data_container[source_attr]->setVisible(true); 500 input_data_container[source_attr]->setVisible(true);