src/video/mir/SDL_mirwindow.c
changeset 10959 97e629557346
parent 10940 10118eaebdfd
child 10971 94f32f14e377
equal deleted inserted replaced
10958:92d837180433 10959:97e629557346
    34 #include "SDL_mirevents.h"
    34 #include "SDL_mirevents.h"
    35 #include "SDL_mirwindow.h"
    35 #include "SDL_mirwindow.h"
    36 
    36 
    37 #include "SDL_mirdyn.h"
    37 #include "SDL_mirdyn.h"
    38 
    38 
    39 int
    39 static int
    40 IsMirWindowValid(MIR_Window* mir_window)
    40 IsMirWindowValid(MIR_Window* mir_window)
    41 {
    41 {
    42     if (!MIR_mir_window_is_valid(mir_window->window)) {
    42     if (!MIR_mir_window_is_valid(mir_window->window)) {
    43         const char* error = MIR_mir_window_get_error_message(mir_window->window);
    43         const char* error = MIR_mir_window_get_error_message(mir_window->window);
    44         return SDL_SetError("Failed to created a mir surface: %s", error);
    44         return SDL_SetError("Failed to created a mir surface: %s", error);
    45     }
    45     }
    46 
    46 
    47     return 1;
    47     return 1;
    48 }
    48 }
    49 
    49 
    50 MirPixelFormat
    50 static MirPixelFormat
    51 FindValidPixelFormat(MIR_Data* mir_data)
    51 FindValidPixelFormat(MIR_Data* mir_data)
    52 {
    52 {
    53     unsigned int pf_size = 32;
    53     unsigned int pf_size = 32;
    54     unsigned int valid_formats;
    54     unsigned int valid_formats;
    55     unsigned int f;
    55     unsigned int f;