mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
update code style
This commit is contained in:
parent
a62a48767d
commit
8b1854cac7
@ -155,7 +155,9 @@ MMBitmapRef bitmap_from_string(const char *str){
|
|||||||
MMBitmapRef bitmap;
|
MMBitmapRef bitmap;
|
||||||
MMBMPStringError err;
|
MMBMPStringError err;
|
||||||
|
|
||||||
if ((bitmap = createMMBitmapFromString((unsigned char*)str, len, &err)) == NULL) {
|
if ((bitmap = createMMBitmapFromString(
|
||||||
|
(unsigned char*)str, len, &err))
|
||||||
|
== NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/* Displays alert with given attributes, and blocks execution until the user
|
/* Displays alert with given attributes, and blocks execution until the user
|
||||||
* responds. Returns 0 if defaultButton was pressed, 1 if cancelButton was
|
* responds. Returns 0 if defaultButton was pressed, 1 if cancelButton was
|
||||||
* pressed, or -1 if an error occurred. */
|
* pressed, or -1 if an error occurred. */
|
||||||
int showAlert(const char *title, const char *msg, const char *defaultButton,
|
int showAlert(const char *title, const char *msg,
|
||||||
const char *cancelButton);
|
const char *defaultButton, const char *cancelButton);
|
||||||
|
|
||||||
#endif /* ALERT_H */
|
#endif /* ALERT_H */
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
#include "alert_c.h"
|
#include "alert_c.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
int show_alert(const char *title, const char *msg, const char *defaultButton,
|
int show_alert(const char *title, const char *msg,
|
||||||
const char *cancelButton){
|
const char *defaultButton, const char *cancelButton){
|
||||||
int alert = showAlert(title, msg, defaultButton, cancelButton);
|
int alert = showAlert(title, msg, defaultButton, cancelButton);
|
||||||
|
|
||||||
return alert;
|
return alert;
|
||||||
|
Loading…
Reference in New Issue
Block a user