File diff r24938:c6d347f5a77a → r24939:f00f6879a003
src/video/sdl2_v.h
Show inline comments
 
@@ -57,12 +57,13 @@ protected:
 

	
 
	Dimension GetScreenSize() const override;
 
	void InputLoop() override;
 
	bool LockVideoBuffer() override;
 
	void UnlockVideoBuffer() override;
 
	void CheckPaletteAnim() override;
 
	bool PollEvent() override;
 

	
 
	/** Indicate to the driver the client-side might have changed. */
 
	void ClientSizeChanged(int w, int h, bool force);
 

	
 
	/** (Re-)create the backing store. */
 
	virtual bool AllocateBackingStore(int w, int h, bool force = false) = 0;
 
@@ -71,13 +72,12 @@ protected:
 
	/** Hand video buffer back to the painting backend. */
 
	virtual void ReleaseVideoPointer() = 0;
 
	/** Create the main window. */
 
	virtual bool CreateMainWindow(uint w, uint h, uint flags = 0);
 

	
 
private:
 
	int PollEvent();
 
	void LoopOnce();
 
	void MainLoopCleanup();
 
	bool CreateMainSurface(uint w, uint h, bool resize);
 
	const char *Initialize();
 

	
 
#ifdef __EMSCRIPTEN__