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 timezone tz;
|
||||
gettimeofday(&tv,&tz);
|
||||
return -(tz.tz_minuteswest/60);
|
||||
return (tz.tz_minuteswest/60);
|
||||
#else
|
||||
return (int)(-timezone);
|
||||
#endif
|
||||
|
||||
@@ -700,7 +700,7 @@ namespace Tesses::Framework::SDL2
|
||||
}
|
||||
else {
|
||||
GUIJsonViewNotFoundEventArgs e;
|
||||
e.destView == nullptr;
|
||||
e.destView = nullptr;
|
||||
e.jsonObject = json;
|
||||
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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user