mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 15:32:12 +08:00
Remove Fl_Copy_Surface::newPlatformSurface() that does not do much.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -50,7 +50,6 @@ class FL_EXPORT Fl_Copy_Surface : public Fl_Widget_Surface {
|
|||||||
private:
|
private:
|
||||||
class Helper;
|
class Helper;
|
||||||
Helper *platform_surface;
|
Helper *platform_surface;
|
||||||
static Helper *newPlatformSurface(int w, int h);
|
|
||||||
protected:
|
protected:
|
||||||
void translate(int x, int y);
|
void translate(int x, int y);
|
||||||
void untranslate();
|
void untranslate();
|
||||||
|
|||||||
@@ -48,13 +48,9 @@ private:
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Fl_Copy_Surface::Helper *Fl_Copy_Surface::newPlatformSurface(int w, int h) {
|
|
||||||
return new Helper(w, h);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** the constructor */
|
/** the constructor */
|
||||||
Fl_Copy_Surface::Fl_Copy_Surface(int w, int h) : Fl_Widget_Surface(NULL) {
|
Fl_Copy_Surface::Fl_Copy_Surface(int w, int h) : Fl_Widget_Surface(NULL) {
|
||||||
platform_surface = newPlatformSurface(w, h);
|
platform_surface = new Helper(w, h);
|
||||||
driver(platform_surface->driver());
|
driver(platform_surface->driver());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user