mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-24 12:41:08 +00:00
Rename she::NotDisposableSurface to she::NonDisposableSurface
This commit is contained in:
parent
ad4e08c8f5
commit
9ee1da15db
@ -11,7 +11,7 @@
|
||||
namespace she {
|
||||
|
||||
class EventQueue;
|
||||
class NotDisposableSurface;
|
||||
class NonDisposableSurface;
|
||||
class Surface;
|
||||
|
||||
// A display or window to show graphics.
|
||||
@ -35,7 +35,7 @@ namespace she {
|
||||
|
||||
// Returns the main surface to draw into this display.
|
||||
// You must not dispose this surface.
|
||||
virtual NotDisposableSurface* getSurface() = 0;
|
||||
virtual NonDisposableSurface* getSurface() = 0;
|
||||
|
||||
// Flips all graphics in the surface to the real display. Returns
|
||||
// false if the flip couldn't be done because the display was
|
||||
|
@ -318,8 +318,8 @@ public:
|
||||
m_surface = newSurface;
|
||||
}
|
||||
|
||||
NotDisposableSurface* getSurface() OVERRIDE {
|
||||
return static_cast<NotDisposableSurface*>(m_surface);
|
||||
NonDisposableSurface* getSurface() OVERRIDE {
|
||||
return static_cast<NonDisposableSurface*>(m_surface);
|
||||
}
|
||||
|
||||
bool flip() OVERRIDE {
|
||||
|
@ -22,9 +22,9 @@ namespace she {
|
||||
virtual void* nativeHandle() = 0;
|
||||
};
|
||||
|
||||
class NotDisposableSurface : public Surface {
|
||||
class NonDisposableSurface : public Surface {
|
||||
public:
|
||||
virtual ~NotDisposableSurface() { }
|
||||
virtual ~NonDisposableSurface() { }
|
||||
private:
|
||||
virtual void dispose() = 0;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user