update code style

This commit is contained in:
vcaesar 2018-10-23 10:53:08 -04:00
parent 99549e7b57
commit 1d8be2ad3e
2 changed files with 2 additions and 12 deletions

View File

@ -18,17 +18,6 @@
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
// class BMP
// {
// public:
// size_t width;
// size_t height;
// size_t byteWidth;
// uint8_t bitsPerPixel;
// uint8_t bytesPerPixel;
// uint8_t *image;
// };
/* Returns false and sets error if |bitmap| is NULL. */ /* Returns false and sets error if |bitmap| is NULL. */
bool bitmap_ready(MMBitmapRef bitmap){ bool bitmap_ready(MMBitmapRef bitmap){
if (bitmap == NULL || bitmap->imageBuffer == NULL) { if (bitmap == NULL || bitmap->imageBuffer == NULL) {

View File

@ -16,6 +16,7 @@ func main() {
s := robotgo.Scale() s := robotgo.Scale()
robotx := 35 * s / 100 robotx := 35 * s / 100
roboty := 25 * s / 100 roboty := 25 * s / 100
bit1 := robotgo.CaptureScreen(0, 0, robotx, roboty) bit1 := robotgo.CaptureScreen(0, 0, robotx, roboty)
robotgo.SaveBitmap(bit1, "test2.png") robotgo.SaveBitmap(bit1, "test2.png")