mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
HPL1: Fix Signed vs. Unsigned Comparison GCC Warnings in Overture Code
This commit is contained in:
parent
0bbf3899b2
commit
1ef5a8194f
@ -501,7 +501,7 @@ void cMainMenuWidget_List::OnDraw() {
|
||||
if ((int)i - mlFirstRow >= mlMaxRows)
|
||||
break;
|
||||
|
||||
if (mlSelected == i) {
|
||||
if (mlSelected ==(int)i) {
|
||||
mpFont->draw(vPos, mvFontSize, cColor(0.95f, 1), eFontAlign_Left, mvEntries[i].c_str());
|
||||
mpDrawer->DrawGfxObject(mpBackGfx, vPos + cVector3f(0, 2, -1),
|
||||
cVector2f(mvSize.x - 5, mvFontSize.y),
|
||||
|
@ -89,7 +89,7 @@ void cNotebookState_Front::OnUpdate(float afTime) {
|
||||
bool bFound = false;
|
||||
for (size_t i = 0; i < mvOptions.size(); ++i) {
|
||||
if (cMath::PointBoxCollision(mpNotebook->GetMousePos(), mvOptions[i].mRect)) {
|
||||
if (mlSelected != i) {
|
||||
if (mlSelected != (int)i) {
|
||||
mlSelected = (int)i;
|
||||
mvOptions[i].mfAlpha = 0;
|
||||
}
|
||||
@ -260,7 +260,7 @@ void cNotebookState_TaskList::OnUpdate(float afTime) {
|
||||
bool bFound = false;
|
||||
for (size_t i = 0; i < mvOptions.size(); ++i) {
|
||||
if (cMath::PointBoxCollision(mpNotebook->GetMousePos(), mvOptions[i].mRect)) {
|
||||
if (mlSelected != i) {
|
||||
if (mlSelected != (int)i) {
|
||||
mlSelected = (int)i;
|
||||
mvOptions[i].mfAlpha = 0;
|
||||
}
|
||||
@ -484,7 +484,7 @@ void cNotebookState_NoteList::OnUpdate(float afTime) {
|
||||
bool bFound = false;
|
||||
for (size_t i = 0; i < mvOptions.size(); ++i) {
|
||||
if (cMath::PointBoxCollision(mpNotebook->GetMousePos(), mvOptions[i].mRect)) {
|
||||
if (mlSelected != i) {
|
||||
if (mlSelected != (int)i) {
|
||||
mlSelected = (int)i;
|
||||
mvOptions[i].mfAlpha = 0;
|
||||
}
|
||||
@ -713,7 +713,7 @@ void cNotebookState_Note::OnUpdate(float afTime) {
|
||||
bool bFound = false;
|
||||
for (size_t i = 0; i < mvOptions.size(); ++i) {
|
||||
if (cMath::PointBoxCollision(mpNotebook->GetMousePos(), mvOptions[i].mRect)) {
|
||||
if (mlSelected != i) {
|
||||
if (mlSelected != (int)i) {
|
||||
mlSelected = (int)i;
|
||||
mvOptions[i].mfAlpha = 0;
|
||||
}
|
||||
@ -754,7 +754,7 @@ void cNotebookState_Note::OnDraw() {
|
||||
//////////////////////////////////
|
||||
// Draw arrows back and forward
|
||||
for (size_t i = 0; i < mvOptions.size(); ++i) {
|
||||
if (i == 0 && mlCurrentPage == mvPages.size() - 1)
|
||||
if (i == 0 && mlCurrentPage == (int)mvPages.size() - 1)
|
||||
continue;
|
||||
if (i == 1 && mlCurrentPage == 0)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user