mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13: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)
|
||||
const char* display = getXDisplay();
|
||||
char* sd = (char*)calloc(100, sizeof(char*));
|
||||
if(sd)strcpy(sd, display);
|
||||
|
||||
if (sd) { strcpy(sd, display); }
|
||||
return sd;
|
||||
#else
|
||||
return "GetXDisplayName is only supported on Linux";
|
||||
|
@ -14,8 +14,8 @@
|
||||
|
||||
int show_alert(const char *title, const char *msg,
|
||||
const char *defaultButton, const char *cancelButton){
|
||||
|
||||
int alert = showAlert(title, msg, defaultButton, cancelButton);
|
||||
|
||||
return alert;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user