Skip to content

Commit

Permalink
finished basic Python 3.8 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
GChristensen committed Oct 14, 2019
1 parent 979bc10 commit f7ccdc0
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions enso/enso/graphics/transparentwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def __init__( self, xPos, yPos, width, height ):
width, height )

def makeCairoContext( self ):
self._surf = self._impl.makeCairoSurface() # TODO: do not forget to remove self._surf
context = cairo.Context( self._surf )
context = cairo.Context( self._impl.makeCairoSurface() )

convertUserSpaceToPoints( context )
return context
Expand Down
2 changes: 0 additions & 2 deletions enso/enso/messages/primarywindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,6 @@ def __setupBackground( self, width, height ):
cr.set_source_rgba( *MSG_BGCOLOR )
cr.fill_preserve()

#self._wind._surf.write_to_png("d:/tmp/surf.png")


def __layoutBlocks( self, messageDoc, captionDoc ):
"""
Expand Down
Binary file modified enso/enso/platform/win32/AsyncEventProcessorRegistry.dll
Binary file not shown.
Binary file modified enso/enso/platform/win32/CLogging.dll
Binary file not shown.
Binary file modified enso/enso/platform/win32/Keyhook.dll
Binary file not shown.
Binary file modified enso/enso/platform/win32/cairo.dll
Binary file not shown.
Binary file modified enso/enso/platform/win32/cairo/_cairo.pyd
Binary file not shown.
Binary file modified enso/enso/platform/win32/graphics/_TransparentWindow.pyd
Binary file not shown.
Binary file modified enso/enso/platform/win32/input/_AsyncEventThread.pyd
Binary file not shown.
Binary file modified enso/enso/platform/win32/input/_InputManager.pyd
Binary file not shown.
Binary file modified enso/enso/platform/win32/selection/_ClipboardBackend.pyd
Binary file not shown.
4 changes: 2 additions & 2 deletions platform/README.win32
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Modern build instructions:
3. Install pywin32 for Python 3 (https://github.com/mhammond/pywin32)
4. Install SCons for Python 3 (https://scons.org/)
5. Install SWIG (http://www.swig.org/) and make it available through the PATH environment variable
6. Install MS Visual Studio 2015+
7. Install MSYS2 (https://www.msys2.org/) and make it available through the PATH environment variable
6. Install MSYS2 (https://www.msys2.org/) and make it available through the PATH environment variable
7. Install MS Visual Studio 2015+
8. Open MSVS Developer Console and change the current working directory to `platform' (this) folder
9. Navigate to `win32/Graphics/cairo' subdirectory
10. Execute "sh build.sh"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ TransparentWindow::makeCairoSurface( void )

/* Creating surface with cairo 1.16+ */

//_cairoSurface = cairo_win32_surface_create( _hDC );

_cairoSurface = cairo_win32_surface_create_with_format(_hDC, CAIRO_FORMAT_ARGB32);
_cairoSurface = cairo_win32_surface_create_with_format(_hDC, CAIRO_FORMAT_ARGB32);

if ( cairo_surface_status(_cairoSurface) != CAIRO_STATUS_SUCCESS )
throw FatalError( "Couldn't init Cairo surface." );
Expand Down Expand Up @@ -205,6 +203,9 @@ TransparentWindow::makeCairoSurface( void )
void
TransparentWindow::update( void )
{
if (_cairoSurface)
cairo_surface_flush(_cairoSurface);

POINT srcPoint;
BLENDFUNCTION bf;
POINT destPoint;
Expand Down

0 comments on commit f7ccdc0

Please sign in to comment.