src/video/windows/SDL_windowsmessagebox.c
changeset 7052 1297b81ad473
parent 7030 4a730984a56f
child 7191 75360622e65f
equal deleted inserted replaced
7051:cf773d8091c7 7052:1297b81ad473
   162     return status;
   162     return status;
   163 }
   163 }
   164 
   164 
   165 static int s_BaseUnitsX;
   165 static int s_BaseUnitsX;
   166 static int s_BaseUnitsY;
   166 static int s_BaseUnitsY;
   167 static void Vec2ToDLU(WORD* x, WORD* y)
   167 static void Vec2ToDLU(short *x, short *y)
   168 {
   168 {
   169     SDL_assert(s_BaseUnitsX != 0); // we init in WIN_ShowMessageBox(), which is the only public function...    
   169     SDL_assert(s_BaseUnitsX != 0); // we init in WIN_ShowMessageBox(), which is the only public function...    
   170 
   170 
   171     *x = MulDiv(*x, 4, s_BaseUnitsX);
   171     *x = MulDiv(*x, 4, s_BaseUnitsX);
   172     *y = MulDiv(*y, 8, s_BaseUnitsY);
   172     *y = MulDiv(*y, 8, s_BaseUnitsY);