You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-06 17:25:19 +00:00
Remove get_default_video_mode definition on OSX/iOS
It had been missed in d09160a8b6 and broke compilation
for those platforms.
Took the opportunity to run clang-format on the code base to fix some corner cases
that went through our static tests/were overlooked recently.
This commit is contained in:
@@ -49,7 +49,6 @@ protected:
|
||||
|
||||
//virtual int get_video_driver_count() const;
|
||||
//virtual const char * get_video_driver_name(int p_driver) const;
|
||||
//virtual VideoMode get_default_video_mode() const;
|
||||
|
||||
virtual int get_audio_driver_count() const;
|
||||
virtual const char *get_audio_driver_name(int p_driver) const;
|
||||
|
||||
@@ -62,11 +62,6 @@ OSIPhone *OSIPhone::get_singleton() {
|
||||
return (OSIPhone *)OS::get_singleton();
|
||||
};
|
||||
|
||||
OS::VideoMode OSIPhone::get_default_video_mode() const {
|
||||
|
||||
return video_mode;
|
||||
};
|
||||
|
||||
uint8_t OSIPhone::get_orientations() const {
|
||||
|
||||
return supported_orientations;
|
||||
|
||||
@@ -83,8 +83,6 @@ private:
|
||||
virtual int get_video_driver_count() const;
|
||||
virtual const char *get_video_driver_name(int p_driver) const;
|
||||
|
||||
virtual VideoMode get_default_video_mode() const;
|
||||
|
||||
virtual void initialize_logger();
|
||||
virtual void initialize_core();
|
||||
virtual void initialize(const VideoMode &p_desired, int p_video_driver, int p_audio_driver);
|
||||
|
||||
@@ -899,16 +899,6 @@ const char *OS_OSX::get_video_driver_name(int p_driver) const {
|
||||
return "GLES2";
|
||||
}
|
||||
|
||||
OS::VideoMode OS_OSX::get_default_video_mode() const {
|
||||
|
||||
VideoMode vm;
|
||||
vm.width = 1024;
|
||||
vm.height = 600;
|
||||
vm.fullscreen = false;
|
||||
vm.resizable = true;
|
||||
return vm;
|
||||
}
|
||||
|
||||
void OS_OSX::initialize_core() {
|
||||
|
||||
crash_handler.initialize();
|
||||
|
||||
@@ -101,8 +101,7 @@ Error ContextEGL::initialize() {
|
||||
|
||||
try {
|
||||
|
||||
const EGLint displayAttributes[] =
|
||||
{
|
||||
const EGLint displayAttributes[] = {
|
||||
/*EGL_PLATFORM_ANGLE_TYPE_ANGLE, EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE,
|
||||
EGL_PLATFORM_ANGLE_MAX_VERSION_MAJOR_ANGLE, 9,
|
||||
EGL_PLATFORM_ANGLE_MAX_VERSION_MINOR_ANGLE, 3,
|
||||
|
||||
@@ -83,10 +83,10 @@
|
||||
#include "scene/gui/link_button.h"
|
||||
#include "scene/gui/margin_container.h"
|
||||
#include "scene/gui/menu_button.h"
|
||||
#include "scene/gui/nine_patch_rect.h"
|
||||
#include "scene/gui/option_button.h"
|
||||
#include "scene/gui/panel.h"
|
||||
#include "scene/gui/panel_container.h"
|
||||
#include "scene/gui/nine_patch_rect.h"
|
||||
#include "scene/gui/popup_menu.h"
|
||||
#include "scene/gui/progress_bar.h"
|
||||
#include "scene/gui/reference_rect.h"
|
||||
|
||||
Reference in New Issue
Block a user