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
674f807cf1
commit
c66bdc1120
@ -87,8 +87,8 @@ char* get_XDisplay_name(){
|
|||||||
#if defined(USE_X11)
|
#if defined(USE_X11)
|
||||||
const char* display = getXDisplay();
|
const char* display = getXDisplay();
|
||||||
char* sd = (char*)calloc(100, sizeof(char*));
|
char* sd = (char*)calloc(100, sizeof(char*));
|
||||||
if(sd)strcpy(sd, display);
|
|
||||||
|
|
||||||
|
if (sd) { strcpy(sd, display); }
|
||||||
return sd;
|
return sd;
|
||||||
#else
|
#else
|
||||||
return "GetXDisplayName is only supported on Linux";
|
return "GetXDisplayName is only supported on Linux";
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
int show_alert(const char *title, const char *msg,
|
int show_alert(const char *title, const char *msg,
|
||||||
const char *defaultButton, 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