@@ -66,7 +66,7 @@ namespace {
6666
6767 void get_nearest_resolution (int & width, int & height);
6868
69- class StdoutSDLDriver
69+ class StdoutSDLDriver final
7070 : public DisplayDriver
7171 {
7272 public:
@@ -83,16 +83,16 @@ namespace {
8383 , m_running (false )
8484 {}
8585
86- virtual ~StdoutSDLDriver ()
86+ ~StdoutSDLDriver () override
8787 {
8888 close ();
8989 }
9090
91- virtual LV::VideoPtr create (VisVideoDepth depth,
92- VisVideoAttrOptions const * vidoptions,
93- unsigned int width,
94- unsigned int height,
95- bool resizable)
91+ LV::VideoPtr create (VisVideoDepth depth,
92+ VisVideoAttrOptions const * vidoptions,
93+ unsigned int width,
94+ unsigned int height,
95+ bool resizable) override
9696 {
9797
9898 int videoflags = 0 ;
@@ -170,7 +170,7 @@ namespace {
170170 return m_screen_video;
171171 }
172172
173- virtual void close ()
173+ void close () override
174174 {
175175 if (!m_running)
176176 return ;
@@ -180,24 +180,24 @@ namespace {
180180 m_running = false ;
181181 }
182182
183- virtual void lock ()
183+ void lock () override
184184 {
185185 if (SDL_MUSTLOCK (m_screen))
186186 SDL_LockSurface (m_screen);
187187 }
188188
189- virtual void unlock ()
189+ void unlock () override
190190 {
191191 if (SDL_MUSTLOCK (m_screen) == SDL_TRUE)
192192 SDL_UnlockSurface (m_screen);
193193 }
194194
195- virtual bool is_fullscreen () const
195+ bool is_fullscreen () const override
196196 {
197197 return m_screen->flags & SDL_FULLSCREEN;
198198 }
199199
200- virtual void set_fullscreen (bool fullscreen, bool autoscale)
200+ void set_fullscreen (bool fullscreen, bool autoscale) override
201201 {
202202 if (fullscreen) {
203203 if (!(m_screen->flags & SDL_FULLSCREEN)) {
@@ -228,17 +228,17 @@ namespace {
228228 }
229229 }
230230
231- virtual LV::VideoPtr get_video () const
231+ LV::VideoPtr get_video () const override
232232 {
233233 return m_screen_video;
234234 }
235235
236- virtual void set_title (std::string const & title)
236+ void set_title (std::string const & title) override
237237 {
238238 SDL_WM_SetCaption (title.c_str (), nullptr );
239239 }
240240
241- virtual void update_rect (LV::Rect const & rect)
241+ void update_rect (LV::Rect const & rect) override
242242 {
243243 if (m_screen->format ->BitsPerPixel == 8 ) {
244244 auto const & pal = m_display.get_video ()->get_palette ();
@@ -291,7 +291,7 @@ namespace {
291291 }
292292 }
293293
294- virtual void drain_events (VisEventQueue& eventqueue)
294+ void drain_events (VisEventQueue& eventqueue) override
295295 {
296296 // Visible or not
297297
0 commit comments