HPL1: Fix Signed vs. Unsigned Comparison GCC Warnings in Overture Code

This commit is contained in:
D G Turner 2022-09-04 01:19:19 +01:00 committed by Eugene Sandulenko
parent 0bbf3899b2
commit 1ef5a8194f
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
2 changed files with 6 additions and 6 deletions

View File

@ -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),

View File

@ -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;