change cloud url

This commit is contained in:
2017-12-23 13:57:43 +00:00
parent 0a3363fb13
commit 01370642a1
3 changed files with 17 additions and 10 deletions

View File

@@ -24,8 +24,8 @@ App App::I; // singleton
void App::create()
{
width = 800;
height = 500;
width = 1920/2;
height = 1080/2;
}
void App::clear()
@@ -70,7 +70,7 @@ void App::download(std::string filename)
{
auto dest = data_path + "/" + filename;
FILE* fp = fopen(dest.c_str(), "wb");
std::string url = "http://omigamedev.ddns.net:8080/panoview/cloud-dwl.php?file=" + filename;
std::string url = "http://omigamedev.com/panopainter/cloud/cloud-dwl.php?file=" + filename;
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_data_write);
@@ -100,7 +100,7 @@ void App::upload(std::string filename, std::string name)
if (curl)
{
std::string url = "http://omigamedev.ddns.net:8080/panoview/cloud-upl.php?name=" + name;
std::string url = "http://omigamedev.com/panopainter/cloud/cloud-upl.php?name=" + name;
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &res);
@@ -242,11 +242,17 @@ void App::update(float dt)
//glViewport(0, 0, (GLsizei)width, (GLsizei)height);
//glClear(GL_COLOR_BUFFER_BIT);
if (!canvas->m_mouse_captured)
{
#if _WIN32 || __OSX__
layout.reload();
layout.reload();
#endif
if (auto* main = layout[main_id])
main->update(width, height, zoom);
if (auto* main = layout[main_id])
{
main->update(width, height, zoom);
stroke->update_controls();
}
}
static glm::vec4 color_button_normal{.1, .1, .1, 1};
static glm::vec4 color_button_hlight{ 1, .0, .0, 1};
@@ -256,7 +262,6 @@ void App::update(float dt)
layout[main_id]->find<NodeButton>("btn-touchlock")->set_color(
canvas->m_canvas->m_touch_lock ? color_button_hlight : color_button_normal);
stroke->update_controls();
auto observer = [this](Node* n)
{