mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-03 23:53: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;
|
MMIOError err;
|
||||||
|
|
||||||
bitmap = newMMBitmapFromFile(path, ttype, &err);
|
bitmap = newMMBitmapFromFile(path, ttype, &err);
|
||||||
// printf("....%zd\n",bitmap->width);
|
// printf("....%zd\n", bitmap->width);
|
||||||
return bitmap;
|
return bitmap;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char *aSaveBitmap(MMBitmapRef bitmap, char *path, uint16_t type){
|
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.";
|
return "Could not save image to file.";
|
||||||
}else{
|
}else{
|
||||||
saveMMBitmapToFile(bitmap, path, (MMImageType) type);
|
saveMMBitmapToFile(bitmap, path, (MMImageType) type);
|
||||||
@ -78,7 +78,7 @@ char *aTostringBitmap(MMBitmapRef bitmap){
|
|||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
MMBitmapRef aGetPortion(MMBitmapRef bit_map,MMRect rect){
|
MMBitmapRef aGetPortion(MMBitmapRef bit_map, MMRect rect){
|
||||||
// MMRect rect;
|
// MMRect rect;
|
||||||
MMBitmapRef portion = NULL;
|
MMBitmapRef portion = NULL;
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ void dispatch_proc(iohook_event * const event) {
|
|||||||
char buf[6];
|
char buf[6];
|
||||||
#endif
|
#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
|
#ifdef WE_REALLY_WANT_A_POINTER
|
||||||
free (buf);
|
free (buf);
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
int aShowAlert(const char *title, const char *msg, const char *defaultButton,
|
int aShowAlert(const char *title, const char *msg, const char *defaultButton,
|
||||||
const char *cancelButton){
|
const char *cancelButton){
|
||||||
int alert = showAlert(title,msg,defaultButton,cancelButton);
|
int alert = showAlert(title, msg, defaultButton, cancelButton);
|
||||||
|
|
||||||
return alert;
|
return alert;
|
||||||
}
|
}
|
||||||
@ -64,7 +64,7 @@ MData aGetActive(){
|
|||||||
|
|
||||||
char* aGetTitle(){
|
char* aGetTitle(){
|
||||||
char* title = GetTitle();
|
char* title = GetTitle();
|
||||||
// printf("title::::%s\n",title );
|
// printf("title::::%s\n", title );
|
||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user