Skip to content

Commit

Permalink
More fixes for issues reported by Codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Dec 25, 2017
1 parent 6689568 commit 41f0ea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/darwin/startup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

SUPERTUX_BUNDLE="`echo "$0" | sed -e 's/\/Contents\/MacOS\/SuperTux//'`"
SUPERTUX_BUNDLE="$(echo "$0" | sed -e 's/\/Contents\/MacOS\/SuperTux//')"
SUPERTUX_RESOURCES="$SUPERTUX_BUNDLE/Contents/Resources"

export "DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:$SUPERTUX_RESOURCES/MacOS"
Expand Down
4 changes: 2 additions & 2 deletions tools/font-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def draw_glyphs(self, cr, cols, rows):
cr.select_font_face(self.font_family, cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_NORMAL)
cr.set_font_size(self.font_size)

fascent, fdescent, fheight, fxadvance, fyadvance = cr.font_extents()
fascent, fdescent, fheight, fyadvance = cr.font_extents()

print self.glyph_height, fheight

Expand All @@ -78,7 +78,7 @@ def draw_glyphs(self, cr, cols, rows):

if idx < len(self.letters):
letter = self.letters[idx]
xbearing, ybearing, width, height, xadvance, yadvance = cr.text_extents(letter)
xbearing, ybearing, width, height, yadvance = cr.text_extents(letter)

#cr.move_to(cx + 0.5 - xbearing - width / 2,
# 0.5 - fdescent + fheight / 2)
Expand Down

0 comments on commit 41f0ea0

Please sign in to comment.