docs/README-winrt.md
changeset 9143 b664273a455c
parent 9141 8a6af8841969
child 9149 e910a192f68f
--- a/docs/README-winrt.md	Sun Sep 14 19:44:53 2014 +0200
+++ b/docs/README-winrt.md	Tue Sep 16 23:09:32 2014 +0200
@@ -225,41 +225,39 @@
 source file, such as, "main.cpp".
 6. click on the Add button.  This will close the dialog, add the new file to 
 your project, and open the file in Visual C++'s text editor.
-7. Copy and paste the following code into the new file (minus the , then save 
-it.
+7. Copy and paste the following code into the new file, then save it.
 
-```
-#include <SDL.h>
 
-int main(int argc, char **argv)
-{
-    SDL_DisplayMode mode;
-    SDL_Window * window = NULL;
-    SDL_Renderer * renderer = NULL;
-    SDL_Event evt;
+    #include <SDL.h>
     
-    if (SDL_Init(SDL_INIT_VIDEO) != 0) {
-        return 1;
-    }
+    int main(int argc, char **argv)
+    {
+        SDL_DisplayMode mode;
+        SDL_Window * window = NULL;
+        SDL_Renderer * renderer = NULL;
+        SDL_Event evt;
+    
+        if (SDL_Init(SDL_INIT_VIDEO) != 0) {
+            return 1;
+        }
     
-    if (SDL_GetCurrentDisplayMode(0, &mode) != 0) {
-        return 1;
-    }
+        if (SDL_GetCurrentDisplayMode(0, &mode) != 0) {
+            return 1;
+        }
     
-    if (SDL_CreateWindowAndRenderer(mode.w, mode.h, SDL_WINDOW_FULLSCREEN, &window, &renderer) != 0) {
-        return 1;
-    }
+        if (SDL_CreateWindowAndRenderer(mode.w, mode.h, SDL_WINDOW_FULLSCREEN, &window, &renderer) != 0) {
+            return 1;
+        }
     
-    while (1) {
-        while (SDL_PollEvent(&evt)) {
+        while (1) {
+            while (SDL_PollEvent(&evt)) {
+            }
+    
+            SDL_SetRenderDrawColor(renderer, 0, 255, 0, 255);
+            SDL_RenderClear(renderer);
+            SDL_RenderPresent(renderer);
         }
-        
-        SDL_SetRenderDrawColor(renderer, 0, 255, 0, 255);
-        SDL_RenderClear(renderer);
-        SDL_RenderPresent(renderer);
     }
-}
-```
 
 
 #### 6.B. Adding code and assets ####