BACKENDS: Fix some comment typos
This commit is contained in:
parent
7fc8619534
commit
b53020f704
5 changed files with 16 additions and 17 deletions
|
@ -158,7 +158,7 @@ int SdlEventSource::mapKey(SDLKey sdlKey, SDLMod mod, Uint16 unicode) {
|
|||
} else if (key >= Common::KEYCODE_UP && key <= Common::KEYCODE_PAGEDOWN) {
|
||||
return key;
|
||||
} else if (unicode) {
|
||||
// Return unicode in case it's stil set and wasn't filtered.
|
||||
// Return unicode in case it's still set and wasn't filtered.
|
||||
return unicode;
|
||||
} else if (key >= 'a' && key <= 'z' && (mod & KMOD_SHIFT)) {
|
||||
return key & ~0x20;
|
||||
|
@ -968,9 +968,8 @@ bool SdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) {
|
|||
event.kbd.keycode = Common::KEYCODE_F5;
|
||||
event.kbd.ascii = mapKey(SDLK_F5, ev.key.keysym.mod, 0);
|
||||
}
|
||||
// Nap center (space) to tab (default action )
|
||||
// Map center (space) to tab (default action)
|
||||
// I wanted to map the calendar button but the calendar comes up
|
||||
//
|
||||
else if (ev.key.keysym.sym == SDLK_SPACE) {
|
||||
event.type = Common::EVENT_KEYDOWN;
|
||||
event.kbd.keycode = Common::KEYCODE_TAB;
|
||||
|
|
|
@ -241,7 +241,7 @@ private:
|
|||
};
|
||||
|
||||
/**
|
||||
* The currently setup video state.
|
||||
* The currently set up video state.
|
||||
*/
|
||||
VideoState _currentState;
|
||||
|
||||
|
@ -444,7 +444,7 @@ private:
|
|||
Surface *_cursor;
|
||||
|
||||
/**
|
||||
* X coordinate of the cursor in phyiscal coordinates.
|
||||
* X coordinate of the cursor in physical coordinates.
|
||||
*/
|
||||
int _cursorX;
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager(uint desktopWidth, uint deskt
|
|||
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
|
||||
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
||||
|
||||
// Setup proper SDL OpenGL context creation.
|
||||
// Set up proper SDL OpenGL context creation.
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
OpenGL::ContextType glContextType;
|
||||
|
||||
|
|
|
@ -62,10 +62,10 @@ public:
|
|||
virtual void notifyVideoExpose() = 0;
|
||||
|
||||
/**
|
||||
* Notify the graphics manager about an resize event.
|
||||
* Notify the graphics manager about a resize event.
|
||||
*
|
||||
* It is noteworthy that the requested width/height should actually be set
|
||||
* up as is and not changed by the graphics manager, since else it might
|
||||
* up as is and not changed by the graphics manager, since otherwise it may
|
||||
* lead to odd behavior for certain window managers.
|
||||
*
|
||||
* It is only required to overwrite this method in case you want a
|
||||
|
@ -94,7 +94,7 @@ public:
|
|||
|
||||
/**
|
||||
* A (subset) of the graphic manager's state. This is used when switching
|
||||
* between different SDL graphic managers on runtime.
|
||||
* between different SDL graphic managers at runtime.
|
||||
*/
|
||||
struct State {
|
||||
int screenWidth, screenHeight;
|
||||
|
|
|
@ -1139,14 +1139,14 @@ void SurfaceSdlGraphicsManager::updateScreen() {
|
|||
}
|
||||
|
||||
void SurfaceSdlGraphicsManager::updateShader() {
|
||||
// shader init code goes here
|
||||
// currently only used on Vita port
|
||||
// the user-selected shaderID should be obtained via ConfMan.getInt("shader")
|
||||
// and the corresponding shader should then be activated here
|
||||
// this way the user can combine any software scaling (scalers)
|
||||
// with any hardware shading (shaders). The shaders could provide
|
||||
// scanline masks, overlays, but could also serve for
|
||||
// hardware-based up-scaling (sharp-bilinear-simple, etc.)
|
||||
// shader init code goes here
|
||||
// currently only used on Vita port
|
||||
// the user-selected shaderID should be obtained via ConfMan.getInt("shader")
|
||||
// and the corresponding shader should then be activated here
|
||||
// this way the user can combine any software scaling (scalers)
|
||||
// with any hardware shading (shaders). The shaders could provide
|
||||
// scanline masks, overlays, but could also serve for
|
||||
// hardware-based up-scaling (sharp-bilinear-simple, etc.)
|
||||
}
|
||||
|
||||
void SurfaceSdlGraphicsManager::internUpdateScreen() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue