mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
update title when changing focus
This commit is contained in:
parent
b0c4f029dc
commit
5638ecbf5a
@ -18,9 +18,9 @@
|
||||
|
||||
#include "pStatThreadData.h"
|
||||
|
||||
#include <pStatFrameData.h>
|
||||
#include <pStatCollectorDef.h>
|
||||
#include <config_pstats.h>
|
||||
#include "pStatFrameData.h"
|
||||
#include "pStatCollectorDef.h"
|
||||
#include "config_pstats.h"
|
||||
|
||||
|
||||
PStatFrameData PStatThreadData::_null_frame;
|
||||
|
@ -70,18 +70,11 @@ WinStatsStripChart::
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void WinStatsStripChart::
|
||||
new_collector(int collector_index) {
|
||||
if (is_title_unknown()) {
|
||||
string window_title = get_title_text();
|
||||
if (!is_title_unknown()) {
|
||||
SetWindowText(_window, window_title.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
WinStatsGraph::new_collector(collector_index);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: WinStatsStripChart::idle
|
||||
// Function: WinStatsStripChart::new_data
|
||||
// Access: Public, Virtual
|
||||
// Description: Called as each frame's data is made available. There
|
||||
// is no gurantee the frames will arrive in order, or
|
||||
@ -91,6 +84,13 @@ new_collector(int collector_index) {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void WinStatsStripChart::
|
||||
new_data(int thread_index, int frame_number) {
|
||||
if (is_title_unknown()) {
|
||||
string window_title = get_title_text();
|
||||
if (!is_title_unknown()) {
|
||||
SetWindowText(_window, window_title.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
if (!_pause) {
|
||||
update();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user