Skip to content

Commit

Permalink
Cleaned up headers and footers on Mir code.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 3, 2014
1 parent 19f8c62 commit 8674b7a
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 20 deletions.
8 changes: 7 additions & 1 deletion src/video/mir/SDL_mirevents.c
Expand Up @@ -23,7 +23,9 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_VIDEO_DRIVER_MIR

#include "../../events/SDL_events_c.h"
#include "../../events/SDL_keyboard_c.h"
Expand Down Expand Up @@ -244,3 +246,7 @@ MIR_HandleInput(MirSurface* surface, MirEvent const* ev, void* context)
break;
}
}

#endif /* SDL_VIDEO_DRIVER_MIR */

/* vi: set ts=4 sw=4 expandtab: */
5 changes: 3 additions & 2 deletions src/video/mir/SDL_mirevents.h
Expand Up @@ -23,8 +23,6 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"

#ifndef _SDL_mirevents_h
#define _SDL_mirevents_h

Expand All @@ -34,3 +32,6 @@ extern void
MIR_HandleInput(MirSurface* surface, MirEvent const* ev, void* context);

#endif /* _SDL_mirevents_h */

/* vi: set ts=4 sw=4 expandtab: */

9 changes: 8 additions & 1 deletion src/video/mir/SDL_mirframebuffer.c
Expand Up @@ -23,7 +23,10 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_VIDEO_DRIVER_MIR

#include "SDL_mirevents.h"
#include "SDL_mirframebuffer.h"
#include "SDL_mirwindow.h"
Expand Down Expand Up @@ -144,3 +147,7 @@ void
MIR_DestroyWindowFramebuffer(_THIS, SDL_Window* window)
{
}

#endif /* SDL_VIDEO_DRIVER_MIR */

/* vi: set ts=4 sw=4 expandtab: */
5 changes: 3 additions & 2 deletions src/video/mir/SDL_mirframebuffer.h
Expand Up @@ -23,8 +23,6 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"

#ifndef _SDL_mirframebuffer_h
#define _SDL_mirframebuffer_h

Expand All @@ -44,3 +42,6 @@ extern void
MIR_DestroyWindowFramebuffer(_THIS, SDL_Window* sdl_window);

#endif /* _SDL_mirframebuffer_h */

/* vi: set ts=4 sw=4 expandtab: */

9 changes: 8 additions & 1 deletion src/video/mir/SDL_mirmouse.c
Expand Up @@ -23,7 +23,9 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_VIDEO_DRIVER_MIR

#include "SDL_mirmouse.h"

Expand Down Expand Up @@ -143,3 +145,8 @@ MIR_FiniMouse()
mouse->CreateSystemCursor = NULL;
mouse->SetRelativeMouseMode = NULL;
}

#endif /* SDL_VIDEO_DRIVER_MIR */

/* vi: set ts=4 sw=4 expandtab: */

4 changes: 2 additions & 2 deletions src/video/mir/SDL_mirmouse.h
Expand Up @@ -23,8 +23,6 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"

#ifndef _SDL_mirmouse_h
#define _SDL_mirmouse_h

Expand All @@ -35,3 +33,5 @@ extern void
MIR_FiniMouse();

#endif /* _SDL_mirmouse_h */

/* vi: set ts=4 sw=4 expandtab: */
9 changes: 8 additions & 1 deletion src/video/mir/SDL_miropengl.c
Expand Up @@ -23,7 +23,10 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_VIDEO_DRIVER_MIR

#include "SDL_miropengl.h"

#include <dlfcn.h>
Expand Down Expand Up @@ -120,3 +123,7 @@ MIR_GL_GetProcAddress(_THIS, const char* proc)

return proc_addr;
}

#endif /* SDL_VIDEO_DRIVER_MIR */

/* vi: set ts=4 sw=4 expandtab: */
5 changes: 3 additions & 2 deletions src/video/mir/SDL_miropengl.h
Expand Up @@ -23,8 +23,6 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"

#ifndef _SDL_miropengl_h
#define _SDL_miropengl_h

Expand Down Expand Up @@ -55,3 +53,6 @@ extern void*
MIR_GL_GetProcAddress(_THIS, const char* proc);

#endif /* _SDL_miropengl_h */

/* vi: set ts=4 sw=4 expandtab: */

10 changes: 9 additions & 1 deletion src/video/mir/SDL_mirvideo.c
Expand Up @@ -23,7 +23,10 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_VIDEO_DRIVER_MIR

#include "SDL_video.h"

#include "SDL_mirframebuffer.h"
Expand Down Expand Up @@ -317,3 +320,8 @@ MIR_SetDisplayMode(_THIS, SDL_VideoDisplay* sdl_display, SDL_DisplayMode* mode)
{
return 0;
}

#endif /* SDL_VIDEO_DRIVER_MIR */

/* vi: set ts=4 sw=4 expandtab: */

5 changes: 2 additions & 3 deletions src/video/mir/SDL_mirvideo.h
Expand Up @@ -23,8 +23,6 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"

#ifndef _SDL_mirvideo_h_
#define _SDL_mirvideo_h_

Expand All @@ -34,7 +32,8 @@
typedef struct
{
MirConnection* connection;

} MIR_Data;

#endif /* _SDL_mirvideo_h_ */

/* vi: set ts=4 sw=4 expandtab: */
8 changes: 7 additions & 1 deletion src/video/mir/SDL_mirwindow.c
Expand Up @@ -23,7 +23,9 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"
#include "../../SDL_internal.h"

#if SDL_VIDEO_DRIVER_MIR

#include "../SDL_egl_c.h"
#include "../SDL_sysvideo.h"
Expand Down Expand Up @@ -214,3 +216,7 @@ MIR_RestoreWindow(_THIS, SDL_Window * window)

mir_surface_set_type(mir_window->surface, mir_surface_state_restored);
}

#endif /* SDL_VIDEO_DRIVER_MIR */

/* vi: set ts=4 sw=4 expandtab: */
6 changes: 3 additions & 3 deletions src/video/mir/SDL_mirwindow.h
Expand Up @@ -23,8 +23,6 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/

#include "SDL_config.h"

#ifndef _SDL_mirwindow_h
#define _SDL_mirwindow_h

Expand All @@ -39,7 +37,6 @@ typedef struct {

MirSurface* surface;
EGLSurface egl_surface;

} MIR_Window;


Expand Down Expand Up @@ -67,3 +64,6 @@ extern SDL_bool
MIR_GetWindowWMInfo(_THIS, SDL_Window* window, SDL_SysWMinfo* info);

#endif /* _SDL_mirwindow */

/* vi: set ts=4 sw=4 expandtab: */

0 comments on commit 8674b7a

Please sign in to comment.