1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Pass a Surface to ButtonBox' and IconButton's paint function

This commit is contained in:
Paul Cercueil
2014-01-16 01:03:15 +01:00
parent ca3df65daa
commit cfb96dd697
10 changed files with 17 additions and 15 deletions

View File

@@ -2,11 +2,11 @@
#define ICONBUTTON_H
#include "delegate.h"
#include "gmenu2x.h"
#include <SDL.h>
#include <string>
class GMenu2X;
class Surface;
class Touchscreen;
@@ -23,7 +23,8 @@ public:
bool handleTS();
void paint();
void paint(Surface *s);
void paint() { paint(gmenu2x->s); }
private:
void recalcRects();