Skip to content

Commit

Permalink
Corrected some offsets in background rects
Browse files Browse the repository at this point in the history
  • Loading branch information
senquack authored and pcercuei committed Aug 31, 2020
1 parent a239ae5 commit 459ada1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gcwconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ def __init__(self):
self.text2 = gcw_font.render('CONNECT', True, colors['logoconnect'], colors['lightbg'])

def draw(self):
pygame.draw.rect(surface, colors['lightbg'], (0,0,320,32))
pygame.draw.line(surface, colors['white'], (0, 33), (320, 33))
pygame.draw.rect(surface, colors['lightbg'], (0,0,320,34))
pygame.draw.line(surface, colors['white'], (0, 34), (320, 34))

rect1 = self.text1.get_rect()
rect1.topleft = (8 + 5 + 1, 5)
Expand Down Expand Up @@ -855,7 +855,7 @@ def update():

if kind == "ssid":
# Draw SSID and encryption type labels
pygame.draw.rect(surface, colors['darkbg'], (2,100,320,34))
pygame.draw.rect(surface, colors['darkbg'], (0,100,320,34))
labelblock = pygame.draw.rect(surface, colors['white'], (0,35,320,20))
labeltext = font_large.render("Enter new SSID", True, colors['lightbg'], colors['white'])
label = labeltext.get_rect()
Expand Down Expand Up @@ -1002,7 +1002,7 @@ def init(self, elements, dest_surface):

def draw(self,move=0):
# Clear any old text (like from apinfo()), but don't overwrite button hint area above statusbar
pygame.draw.rect(surface, colors['darkbg'], (0,34,320,174))
pygame.draw.rect(surface, colors['darkbg'], (0,35,320,173))

if len(self.elements) == 0:
return
Expand Down

0 comments on commit 459ada1

Please sign in to comment.