mirror of
https://onedev.site.tesses.net/tesses-framework
synced 2026-02-08 15:55:46 +00:00
fix for freebsd
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Tesses::Framework::Date
|
|||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
struct timezone tz;
|
struct timezone tz;
|
||||||
gettimeofday(&tv,&tz);
|
gettimeofday(&tv,&tz);
|
||||||
return -(tz.tz_minuteswest/60);
|
return (tz.tz_minuteswest/60);
|
||||||
#else
|
#else
|
||||||
return (int)(-timezone);
|
return (int)(-timezone);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -700,7 +700,7 @@ namespace Tesses::Framework::SDL2
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
GUIJsonViewNotFoundEventArgs e;
|
GUIJsonViewNotFoundEventArgs e;
|
||||||
e.destView == nullptr;
|
e.destView = nullptr;
|
||||||
e.jsonObject = json;
|
e.jsonObject = json;
|
||||||
e.typeString = type;
|
e.typeString = type;
|
||||||
|
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ namespace Tesses::Framework::SDL2::Views
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
numberOfCells == 0 ? 0 : freeWidth/ numberOfCells;
|
cellSize = numberOfCells == 0 ? 0 : freeWidth/ numberOfCells;
|
||||||
int x = 0;
|
int x = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user