SDL_WindowFlags

I’m running 64-bit Win7 on a Dell Inspiron N4110 with Intel Core I3 using SDL 2.0.4. The build is for SDL 2.0.4 for MinGW for 32-bit Windows using 32-bit libraries and headers. The larger program does everything the same as on Ubuntu except there is no border on the SDL window when running under Win7.

The printf() in the code below prints 0x604 for window flags. According to the enumeration SDL_WindowFlags, 0x604 translates into the following flags:

SDL_WINDOW_OPENGL
SDL_WINDOW_BORDERLESS
SDL_WINDOW_RESIZABLE

Notice the flags field of SDL_CreateWindow is 0, not 0x604. WTF?

I use the same SDL_CreateWindow line on Ubuntu and I get a border around the SDL window. I want a border on the window when running in Windows OS also. What should I put in the flags field - 0x404? Why not just 0? Well, I put 0x404 in that field and the printf() still says 0x604. How do you explain this strange behavior? How do I get a border while using:

vmode.w,vmode.h, for screen dimensions?

TIA. Bill_S.

Code:

int main(int argc, char* argv[])
{
SDL_Window win1 = NULL;
SDL_Renderer
renderer;

(SDL_Init(SDL_INIT_VIDEO);
SDL_DisplayMode vmode;
SDL_GetDisplayMode(0, 0, &vmode);

win1 = SDL_CreateWindow(“test window”,
SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
vmode.w,vmode.h,
0);

    renderer = SDL_CreateRenderer(win1, -1, 0);
    SDL_SetRenderDrawColor(renderer, 255, 0, 0, 255);
    SDL_RenderClear(renderer);
    SDL_RenderPresent(renderer);

printf(“window flags hex: %x\n”, SDL_GetWindowFlags(win1));

    SDL_Delay(5000);
    SDL_Quit();
    return 0;

}