mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-30 22:13:54 +00:00
Format some code
This commit is contained in:
parent
9298b9bc17
commit
f311cf8810
@ -54,13 +54,13 @@ MMBitmapRef aOpenBitmap(char *path, uint16_t ttype){
|
||||
MMIOError err;
|
||||
|
||||
bitmap = newMMBitmapFromFile(path, ttype, &err);
|
||||
// printf("....%zd\n",bitmap->width);
|
||||
// printf("....%zd\n", bitmap->width);
|
||||
return bitmap;
|
||||
|
||||
}
|
||||
|
||||
char *aSaveBitmap(MMBitmapRef bitmap, char *path, uint16_t type){
|
||||
if (saveMMBitmapToFile(bitmap, path,(MMImageType) type) != 0) {
|
||||
if (saveMMBitmapToFile(bitmap, path, (MMImageType) type) != 0) {
|
||||
return "Could not save image to file.";
|
||||
}else{
|
||||
saveMMBitmapToFile(bitmap, path, (MMImageType) type);
|
||||
@ -78,7 +78,7 @@ char *aTostringBitmap(MMBitmapRef bitmap){
|
||||
return buf;
|
||||
}
|
||||
|
||||
MMBitmapRef aGetPortion(MMBitmapRef bit_map,MMRect rect){
|
||||
MMBitmapRef aGetPortion(MMBitmapRef bit_map, MMRect rect){
|
||||
// MMRect rect;
|
||||
MMBitmapRef portion = NULL;
|
||||
|
||||
|
@ -146,7 +146,7 @@ void dispatch_proc(iohook_event * const event) {
|
||||
char buf[6];
|
||||
#endif
|
||||
|
||||
sprintf(buf, "%lc",(uint16_t) event->data.keyboard.keychar);
|
||||
sprintf(buf, "%lc", (uint16_t) event->data.keyboard.keychar);
|
||||
|
||||
#ifdef WE_REALLY_WANT_A_POINTER
|
||||
free (buf);
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
int aShowAlert(const char *title, const char *msg, const char *defaultButton,
|
||||
const char *cancelButton){
|
||||
int alert = showAlert(title,msg,defaultButton,cancelButton);
|
||||
int alert = showAlert(title, msg, defaultButton, cancelButton);
|
||||
|
||||
return alert;
|
||||
}
|
||||
@ -64,7 +64,7 @@ MData aGetActive(){
|
||||
|
||||
char* aGetTitle(){
|
||||
char* title = GetTitle();
|
||||
// printf("title::::%s\n",title );
|
||||
// printf("title::::%s\n", title );
|
||||
return title;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user