This commit is contained in:
Lorenzooone
2026-06-01 15:06:01 +02:00
parent fac75c70b8
commit 370cc0e8d3
3 changed files with 7 additions and 6 deletions

View File

@@ -434,19 +434,19 @@ void TextRectangle::updateText(int x_limit) {
sf::Color color_text = sf::Color(255, 255, 255, 255);
switch(this->loaded_data.kind) {
case TEXT_KIND_NORMAL:
this->curr_color = sf::Color(40, 40, 80, 255);
this->curr_color = sf::Color(40, 40, 80, 192);
break;
case TEXT_KIND_SELECTED:
this->curr_color = sf::Color(90, 150, 210, 192);
break;
case TEXT_KIND_SUCCESS:
this->curr_color = sf::Color(0, 255, 0, 255);
this->curr_color = sf::Color(90, 210, 90, 192);
break;
case TEXT_KIND_WARNING:
this->curr_color = sf::Color(200, 200, 90, 192);
break;
case TEXT_KIND_ERROR:
this->curr_color = sf::Color(255, 0, 0, 255);
this->curr_color = sf::Color(210, 90, 90, 192);
break;
case TEXT_KIND_OPAQUE_ERROR:
this->curr_color = sf::Color(160, 60, 60, 192);

View File

@@ -84,7 +84,7 @@ WindowScreen::WindowScreen(ScreenType stype, CaptureStatus* capture_status, Disp
full_width = bottom_width;
full_height = bottom_height;
}
this->shared_texture_available = this->full_in_tex.resize({(unsigned int)full_width, (unsigned int)full_height});
this->shared_texture_available = false; //this->full_in_tex.resize({(unsigned int)full_width, (unsigned int)full_height});
if(this->shared_texture_available) {
this->m_in_rect_top.setTexture(&this->full_in_tex);
this->m_in_rect_top_right.setTexture(&this->full_in_tex);
@@ -366,7 +366,7 @@ void WindowScreen::draw(double frame_time, VideoOutputData* out_buf, InputVideoD
FPSArrayInsertElement(&this->draw_fps, diff.count());
this->last_draw_time = curr_time;
printf("OUT: %f\n", diff.count());
print_time_since_start_draw("TOTAL DRAW TIME");
print_time_since_start_draw("DISPLAY TIME");
}
else
this->was_last_frame_null = true;
@@ -376,6 +376,7 @@ void WindowScreen::print_time_since_start_draw(std::string text) {
auto curr_time = std::chrono::high_resolution_clock::now();
std::chrono::duration<double> diff = curr_time - this->start_draw_time;
printf("%s: %f\n", text.c_str(), diff.count());
this->start_draw_time = curr_time;
}
void WindowScreen::update_connection() {