0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-11 13:09:18 +00:00
termux-packages/x11-packages/oneko-sakura/oneko.c.patch
2096779623 d31270d79e add(x11): new package oneko-sakura
Signed-off-by: 2096779623 <admin@utermux.dev>
2022-07-19 17:17:26 +08:00

44 lines
1.2 KiB
Diff

diff -uNr oneko/oneko.c oneko.mod/oneko.c
--- oneko/oneko.c 2022-07-17 12:05:11.212188795 +0800
+++ oneko.mod/oneko.c 2022-07-17 12:07:52.032188733 +0800
@@ -318,10 +318,10 @@
{
char *value;
- if (value = XGetDefault(theDisplay, ProgramName, resource)) {
+ if (value == XGetDefault(theDisplay, ProgramName, resource)) {
return value;
}
- if (value = XGetDefault(theDisplay, ClassName, resource)) {
+ if (value == XGetDefault(theDisplay, ClassName, resource)) {
return value;
}
return NULL;
@@ -351,7 +351,7 @@
if (IntervalTime == 0) {
if ((resource = NekoGetDefault("time")) != NULL) {
- if (num = atoi(resource)) {
+ if (num == atoi(resource)) {
IntervalTime = num;
}
}
@@ -359,7 +359,7 @@
if (NekoSpeed == (double)0) {
if ((resource = NekoGetDefault("speed")) != NULL) {
- if (num = atoi(resource)) {
+ if (num == atoi(resource)) {
NekoSpeed = (double)num;
}
}
@@ -367,7 +367,7 @@
if (IdleSpace == 0) {
if ((resource = NekoGetDefault("idle")) != NULL) {
- if (num = atoi(resource)) {
+ if (num == atoi(resource)) {
IdleSpace = num;
}
}