mirror of
https://github.com/fltk/fltk.git
synced 2026-05-24 08:16:04 +08:00
PicoSDL mostly running again
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11608 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -42,9 +42,10 @@ public:
|
||||
virtual void show();
|
||||
virtual Fl_X *makeWindow();
|
||||
virtual void make_current();
|
||||
virtual void draw_end();
|
||||
|
||||
// --- window management
|
||||
virtual void flush_single();
|
||||
// virtual void flush_single();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -88,6 +88,7 @@ Fl_X *Fl_PicoSDL_Window_Driver::makeWindow()
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
void Fl_PicoSDL_Window_Driver::flush_single()
|
||||
{
|
||||
if (!shown()) return;
|
||||
@@ -96,10 +97,25 @@ void Fl_PicoSDL_Window_Driver::flush_single()
|
||||
if (!i) return;
|
||||
fl_clip_region(i->region);
|
||||
i->region = 0;
|
||||
// SDL_RenderClear((SDL_Renderer*)i->xid);
|
||||
// SDL_RenderClear((SDL_Renderer*)i->xid);
|
||||
pWindow->draw();
|
||||
SDL_RenderPresent((SDL_Renderer*)i->xid);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
void Fl_PicoSDL_Window_Driver::draw_end()
|
||||
{
|
||||
// if (!shown()) return;
|
||||
// pWindow->make_current();
|
||||
Fl_X *i = Fl_X::i(pWindow);
|
||||
// if (!i) return;
|
||||
// fl_clip_region(i->region);
|
||||
// i->region = 0;
|
||||
// // SDL_RenderClear((SDL_Renderer*)i->xid);
|
||||
// pWindow->draw();
|
||||
SDL_RenderPresent((SDL_Renderer*)i->xid);
|
||||
}
|
||||
|
||||
|
||||
void Fl_PicoSDL_Window_Driver::make_current()
|
||||
|
||||
Reference in New Issue
Block a user