// C++ code Copyright (C) David R. Evans G4AMJ/NQ0I

// grey scale for surface

#ifndef GREYFONTVGAH
#define GREYFONTVGAH

#include <config.h>
#include <DREstring.h>
#include <gf.h>

class grey_font_vga : public grey_font
{ friend class vga;

  char** pr;

  uint16 _rebuild(const uint16 width, const uint16 height);
  void* _generate_square(const uint16 n_black);
  void _generate_squares(void);

public:
  grey_font_vga(const uint16 width = 0, const uint16 height = 0);
  ~grey_font_vga(void);

  void* memory_pattern(const int n)
    { return pr[n]; }
};

#endif
