Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ppiecuch committed Aug 3, 2024
1 parent d99cb85 commit 3b6774f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
12 changes: 5 additions & 7 deletions scene/debugconsole/figlet_font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
/**************************************************************************/

/*
Copyright (c) 2014, Enrico Bertolazzi (enrico.bertolazzi@unitn.it)
All rights reserved.
*/
* Copyright (c) 2014, Enrico Bertolazzi (enrico.bertolazzi@unitn.it)
* All rights reserved.
*/

#include "figlet_font.h"
#include <string.h>
Expand All @@ -44,8 +44,6 @@ All rights reserved.

namespace Figlet {

using namespace std;

typedef unsigned short u_short;

Banner::Banner(
Expand All @@ -58,8 +56,8 @@ Banner::Banner(
const char *_MappingFrom,
const char *_MappingTo) :
characters(_characters), Hardblank(_Hardblank), Height(_Height), FontMaxLen(_FontMaxLen), FontSize(_FontSize), charPosition(0), mappingFrom(_MappingFrom), mappingTo(_MappingTo), printMode(_PrintMode) {
fill(charToTable, charToTable + maxTableSize, 0); // caratteri non noti mappati in spazi
fill(rspaces, rspaces + Height, 0);
std::fill(charToTable, charToTable + maxTableSize, 0); // caratteri non noti mappati in spazi
std::fill(rspaces, rspaces + Height, 0);
for (unsigned i = 0; i < FontSize; ++i) {
unsigned ipos = unsigned(characters[i].nchar);
if (ipos < maxTableSize) {
Expand Down
6 changes: 3 additions & 3 deletions scene/debugconsole/figlet_font.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
/**************************************************************************/

/*
Copyright (c) 2014, Enrico Bertolazzi (email: enrico.bertolazzi@unitn.it)
All rights reserved.
*/
* Copyright (c) 2014, Enrico Bertolazzi (email: enrico.bertolazzi@unitn.it)
* All rights reserved.
*/

// check for bugged compiler
#ifdef _MSC_VER
Expand Down

0 comments on commit 3b6774f

Please sign in to comment.