Use replaying surface for hatched areas

This commit is contained in:
XANTRONIX 2025-03-26 15:29:07 -04:00
parent 8ebd1143be
commit b2ac1be8b3

View file

@ -517,7 +517,8 @@ class SPCOutlookMap(EquirectMap):
def __init__(self):
super().__init__(*MAP_SCREEN_DIMENSIONS, MAP_BOUNDS)
self.hatched_surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 8, 8)
self.hatched_surface = cairo.RecordingSurface(cairo.CONTENT_COLOR_ALPHA,
cairo.Rectangle(0, 0, 8, 8))
cr = cairo.Context(self.hatched_surface)
cr.move_to(0, 0)