Skip to content

Instantly share code, notes, and snippets.

Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@michicc
michicc / railtype_90deg_curve_03.patch
Last active August 12, 2018 10:32
Railtype flag for 90 deg curves.
From 58b42eaa40c6ec8a242ba64054f50c31d62a9e3e Mon Sep 17 00:00:00 2001
From: Michael Lutz <[email protected]>
Date: Sat, 28 Jul 2018 18:07:41 +0200
Subject: Feature: Railtype flags to allow/disallow 90 degree curves.
---
src/pathfinder/follow_track.hpp | 2 +-
src/pathfinder/npf/npf.cpp | 14 +++++++++-----
src/pbs.cpp | 4 ++--
src/rail.h | 25 +++++++++++++++++++++++++
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index 3756a7452..86526a3bc 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -719,6 +724,7 @@ class Win32FontCache : public TrueTypeFontCache {
HFONT font = NULL; ///< The font face associated with this font.
HDC dc = NULL;
HGDIOBJ old_font;
+ SIZE glyph_size;
@michicc
michicc / assert_v2.diff
Last active March 3, 2019 20:06
Asserts?
diff --git a/projects/openttd_vs141.vcxproj b/projects/openttd_vs141.vcxproj
index 66974da28f..04d5951a25 100644
--- a/projects/openttd_vs141.vcxproj
+++ b/projects/openttd_vs141.vcxproj
@@ -24,6 +24,7 @@
<RootNamespace>openttd</RootNamespace>
<VcpkgTriplet Condition="'$(Platform)'=='Win32'">x86-windows-static</VcpkgTriplet>
<VcpkgTriplet Condition="'$(Platform)'=='x64'">x64-windows-static</VcpkgTriplet>
+ <DisableAsserts>0</DisableAsserts>
</PropertyGroup>
diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm
index bd5d8bdaa..c2c35fe78 100644
--- a/src/video/cocoa/wnd_quartz.mm
+++ b/src/video/cocoa/wnd_quartz.mm
@@ -289,9 +289,7 @@ - (void)drawRect:(NSRect)invalidRect
styleMask:style
backing:NSBackingStoreBuffered
defer:NO ];
- if ([ this->window respondsToSelector:@selector(setColorSpace:) ]) {
- [ this->window setColorSpace:[ [ [ NSColorSpace alloc ] initWithCGColorSpace:QZ_GetCorrectColorSpace() ] autorelease ] ];
/**
* Simply using AIList of indexes is faster than any squirrel implementation.
*/
class Native_Heap
{
_queue = null;
_sorter = null;
constructor()
{
diff --git a/cmake/scripts/Regression.cmake b/cmake/scripts/Regression.cmake
index 0b4e522d3..926457839 100644
--- a/cmake/scripts/Regression.cmake
+++ b/cmake/scripts/Regression.cmake
@@ -68,6 +68,10 @@ file(READ ai/${REGRESSION_TEST}/result.txt REGRESSION_EXPECTED)
string(REPLACE "\n" ";" REGRESSION_RESULT "${REGRESSION_RESULT}")
string(REPLACE "\n" ";" REGRESSION_EXPECTED "${REGRESSION_EXPECTED}")
+# Strip possible trailing newline
+string(REGEX REPLACE ";$" "" REGRESSION_RESULT "${REGRESSION_RESULT}")
@michicc
michicc / osx_chrono.diff
Last active January 10, 2021 18:08
OSX std::chrono
diff --git a/src/video/cocoa/event.mm b/src/video/cocoa/event.mm
index 8a43945f5..a455ccb76 100644
--- a/src/video/cocoa/event.mm
+++ b/src/video/cocoa/event.mm
@@ -619,10 +619,6 @@ static bool QZ_PollEvent()
void VideoDriver_Cocoa::GameLoop()
{
- uint32 cur_ticks = GetTick();
- uint32 last_cur_ticks = cur_ticks;
diff --git a/src/settings.cpp b/src/settings.cpp
index d3be59692..ffd0ebcdc 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -86,7 +86,7 @@ typedef std::list<ErrorMessageData> ErrorList;
static ErrorList _settings_error_list; ///< Errors while loading minimal settings.
-typedef void SettingDescProc(IniFile *ini, const SettingDesc *desc, const char *grpname, void *object);
+typedef void SettingDescProc(IniFile *ini, const SettingDesc *desc, const char *grpname, void *object, bool only_minimal);