From: Javier S. Pedro Date: Wed, 30 Sep 2009 10:11:36 +0000 (+0200) Subject: fix compiler warning X-Git-Tag: drnoksnes_1_2_1~1 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=ad06a75f2538e334c12756e0648e8e5fda2e81d5;hp=2d01df51d7a3fd4158f8c73724745738bc2fed9c;p=drnoksnes fix compiler warning --- diff --git a/platform/sdli.cpp b/platform/sdli.cpp index 7fdf2b8..db032fe 100644 --- a/platform/sdli.cpp +++ b/platform/sdli.cpp @@ -240,27 +240,28 @@ static void drawControls(T * buffer, const int pitch) { unsigned int i = 0; int x, y; + const T black = static_cast(0xFFFFFFFFU); T* temp; for (i = 0; i < sizeof(touchbuttons)/sizeof(TouchButton); i++) { temp = buffer + touchbuttons[i].y * pitch + touchbuttons[i].x; for (x = touchbuttons[i].x; x < touchbuttons[i].x2; x++) { - *temp = -1UL; // Black + *temp = black; // Black temp++; } temp = buffer + touchbuttons[i].y2 * pitch + touchbuttons[i].x; for (x = touchbuttons[i].x; x < touchbuttons[i].x2; x++) { - *temp = -1UL; // Black + *temp = black; // Black temp++; } temp = buffer + touchbuttons[i].y * pitch + touchbuttons[i].x; for (y = touchbuttons[i].y; y < touchbuttons[i].y2; y++) { - *temp = -1UL; // Black + *temp = black; // Black temp+=pitch; } temp = buffer + touchbuttons[i].y * pitch + touchbuttons[i].x2; for (y = touchbuttons[i].y; y < touchbuttons[i].y2; y++) { - *temp = -1UL; // Black + *temp = black; // Black temp+=pitch; } }