Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ settings*.py
# header files that may be copied over, if missing
ImPlatform.h
Imaging.h
Arrow.h

# various forms of compiled c_overviewer extensions
overviewer_core/c_overviewer*.so
Expand Down
4 changes: 3 additions & 1 deletion docs/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ First, you'll need a compiler. You can either use Visual Studio, or
cygwin/mingw. The free `Visual Studio Community
<https://www.visualstudio.com/vs/community/>`_ is okay. You will need to select the "Desktop Development with C++" WORKLOAD. Microsoft has been changing up the names on this with the "Community" edition of Visual Studio. If nothing else works, just install every Individual Visual C++ component you can find :)

When using the Visual C++ libraries, if you run into an issue where io.h is missing, make sure either Windows 10 or Windows 11 SDK is installed (depending on your OS).


Prerequisites
~~~~~~~~~~~~~
Expand All @@ -60,7 +62,7 @@ Building with Visual Studio
1. Get the latest Overviewer source code as per above.
2. From the Start menu, navigate to 'Visual Studio 2017' and open the **'Developer Command Prompt for VS 2017'** (*or whatever year*) shortcut. A regular command or powershell prompt will *NOT* work for this.
3. cd to the folder containing the Overviewer source code.
4. Copy Imaging.h and ImPlatform.h from your Pillow sources into the current working directory.
4. Copy Imaging.h, ImPlatform.h, ImagingUtils.h, and Arrow.h from your Pillow sources into the current working directory.
5. First try a build::

c:\python37\python setup.py build
Expand Down
2 changes: 1 addition & 1 deletion overviewer_core/rendermodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def facemasks(self):
# no alpha channel (and it's mode "L")
top.paste(toppart, (0,0))
left.paste(leftpart, (0,6))
right = left.transpose(Image.FLIP_LEFT_RIGHT)
right = left.transpose(Image.Transpose.FLIP_LEFT_RIGHT)

# Manually touch up 6 pixels that leave a gap, like in
# textures._build_block()
Expand Down
Loading