LayoutFarm / HtmlRenderer

C# HTML Layout and HTML Rendering Engine
http://layoutfarm.github.io/HtmlRenderer/
Other
185 stars 40 forks source link

No platform selection in the code of Demo project #49

Open ArsenShnurkov opened 9 years ago

ArsenShnurkov commented 9 years ago

https://github.com/prepare/HTML-Renderer/blob/master/Source/HtmlRenderer.Demo/Program.cs#L40

the platform can be checked as in this snippet: http://stackoverflow.com/questions/5116977

private static bool IsLinux
{
    get
    {
        int p = (int) Environment.OSVersion.Platform;
        return (p == 4) || (p == 6) || (p == 128);
    }
}
prepare commented 9 years ago

Thank you, I will integrate that to my code.

But please note that my code is not complete :( some functions still use Win32 functions.

ArsenShnurkov commented 9 years ago

ok, i see - https://github.com/prepare/HTML-Renderer/issues/9