Skip to content

Commit

Permalink
update width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
glumes committed Jul 25, 2018
1 parent 0fe0e53 commit 03a4178
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cppso/src/main/cpp/jnioperations/bitmap_operation.cpp
Expand Up @@ -82,8 +82,8 @@ JNIEXPORT jobject JNICALL Java_com_glumes_cppso_jnioperations_BitmapOps_convertB
return NULL;
}

uint32_t newWidth = bitmapInfo.height;
uint32_t newHeight = bitmapInfo.width;
uint32_t newWidth = bitmapInfo.width;
uint32_t newHeight = bitmapInfo.height;

uint32_t *newBitmapPixels = new uint32_t[newWidth * newHeight];

Expand Down Expand Up @@ -135,8 +135,8 @@ JNIEXPORT jobject JNICALL Java_com_glumes_cppso_jnioperations_BitmapOps_mirrorBi
return NULL;
}

uint32_t newWidth = bitmapInfo.height;
uint32_t newHeight = bitmapInfo.width;
uint32_t newWidth = bitmapInfo.width;
uint32_t newHeight = bitmapInfo.height;

uint32_t *newBitmapPixels = new uint32_t[newWidth * newHeight];

Expand Down
Expand Up @@ -17,6 +17,5 @@ public class BitmapOps extends BaseOperation {

@Override
public void invoke() {

}
}

0 comments on commit 03a4178

Please sign in to comment.