Merge "Fixing trivial warnings for libminui"
This commit is contained in:
commit
bddbb5b370
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@
|
||||||
// need this functionality (it's used for gamma adjustment) so provide
|
// need this functionality (it's used for gamma adjustment) so provide
|
||||||
// a dummy implementation to satisfy the linker.
|
// a dummy implementation to satisfy the linker.
|
||||||
double pow(double x, double y) {
|
double pow(double x, double y) {
|
||||||
return x;
|
return x * y;
|
||||||
}
|
}
|
||||||
|
|
||||||
int res_create_surface(const char* name, gr_surface* pSurface) {
|
int res_create_surface(const char* name, gr_surface* pSurface) {
|
||||||
|
@ -130,7 +130,7 @@ int res_create_surface(const char* name, gr_surface* pSurface) {
|
||||||
alpha = 1;
|
alpha = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int y;
|
unsigned int y;
|
||||||
if (channels == 3 || (channels == 1 && !alpha)) {
|
if (channels == 3 || (channels == 1 && !alpha)) {
|
||||||
for (y = 0; y < height; ++y) {
|
for (y = 0; y < height; ++y) {
|
||||||
unsigned char* pRow = pData + y * stride;
|
unsigned char* pRow = pData + y * stride;
|
||||||
|
|
Loading…
Reference in a new issue