Fixed doxygen warning and markdown formatting.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Tue, 16 Sep 2014 23:09:32 +0200
changeset 9143b664273a455c
parent 9142 5bf21e9e191f
child 9144 c197a316685a
Fixed doxygen warning and markdown formatting.

Three backticks for blocks are not supported by doxygen.
docs/README-winrt.md
     1.1 --- a/docs/README-winrt.md	Sun Sep 14 19:44:53 2014 +0200
     1.2 +++ b/docs/README-winrt.md	Tue Sep 16 23:09:32 2014 +0200
     1.3 @@ -225,41 +225,39 @@
     1.4  source file, such as, "main.cpp".
     1.5  6. click on the Add button.  This will close the dialog, add the new file to 
     1.6  your project, and open the file in Visual C++'s text editor.
     1.7 -7. Copy and paste the following code into the new file (minus the , then save 
     1.8 -it.
     1.9 +7. Copy and paste the following code into the new file, then save it.
    1.10  
    1.11 -```
    1.12 -#include <SDL.h>
    1.13  
    1.14 -int main(int argc, char **argv)
    1.15 -{
    1.16 -    SDL_DisplayMode mode;
    1.17 -    SDL_Window * window = NULL;
    1.18 -    SDL_Renderer * renderer = NULL;
    1.19 -    SDL_Event evt;
    1.20 +    #include <SDL.h>
    1.21      
    1.22 -    if (SDL_Init(SDL_INIT_VIDEO) != 0) {
    1.23 -        return 1;
    1.24 +    int main(int argc, char **argv)
    1.25 +    {
    1.26 +        SDL_DisplayMode mode;
    1.27 +        SDL_Window * window = NULL;
    1.28 +        SDL_Renderer * renderer = NULL;
    1.29 +        SDL_Event evt;
    1.30 +    
    1.31 +        if (SDL_Init(SDL_INIT_VIDEO) != 0) {
    1.32 +            return 1;
    1.33 +        }
    1.34 +    
    1.35 +        if (SDL_GetCurrentDisplayMode(0, &mode) != 0) {
    1.36 +            return 1;
    1.37 +        }
    1.38 +    
    1.39 +        if (SDL_CreateWindowAndRenderer(mode.w, mode.h, SDL_WINDOW_FULLSCREEN, &window, &renderer) != 0) {
    1.40 +            return 1;
    1.41 +        }
    1.42 +    
    1.43 +        while (1) {
    1.44 +            while (SDL_PollEvent(&evt)) {
    1.45 +            }
    1.46 +    
    1.47 +            SDL_SetRenderDrawColor(renderer, 0, 255, 0, 255);
    1.48 +            SDL_RenderClear(renderer);
    1.49 +            SDL_RenderPresent(renderer);
    1.50 +        }
    1.51      }
    1.52 -    
    1.53 -    if (SDL_GetCurrentDisplayMode(0, &mode) != 0) {
    1.54 -        return 1;
    1.55 -    }
    1.56 -    
    1.57 -    if (SDL_CreateWindowAndRenderer(mode.w, mode.h, SDL_WINDOW_FULLSCREEN, &window, &renderer) != 0) {
    1.58 -        return 1;
    1.59 -    }
    1.60 -    
    1.61 -    while (1) {
    1.62 -        while (SDL_PollEvent(&evt)) {
    1.63 -        }
    1.64 -        
    1.65 -        SDL_SetRenderDrawColor(renderer, 0, 255, 0, 255);
    1.66 -        SDL_RenderClear(renderer);
    1.67 -        SDL_RenderPresent(renderer);
    1.68 -    }
    1.69 -}
    1.70 -```
    1.71  
    1.72  
    1.73  #### 6.B. Adding code and assets ####