LayoutFarm/HtmlRenderer

No platform selection in the code of Demo project

ArsenShnurkov opened this issue · 2 comments

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);
    }
}

Thank you, I will integrate that to my code.

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