naive improvement of ID generation

This commit is contained in:
Henrik Rydgard 2012-04-12 23:19:44 +02:00
parent dee2062012
commit 34f5b7abb3
2 changed files with 3 additions and 2 deletions

View file

@ -65,6 +65,7 @@ bool SaveFileDialog(const char *title, const char *extension, std::string *filen
#include <string>
#include "base/basictypes.h"
#include "base/logging.h"
bool OpenFileDialog(const char *title, const char *extension, std::string *filename)
{

View file

@ -13,10 +13,10 @@
// multiple parts of a single screen of UI over multiple files unless you use IMGUI_SRC_ID.
#ifdef IMGUI_SRC_ID
#define GEN_ID ((IMGUI_SRC_ID) + (__LINE__))
#define GEN_ID_LOOP(i) ((IMGUI_SRC_ID) + (__LINE__) + (i) * 1000)
#define GEN_ID_LOOP(i) ((IMGUI_SRC_ID) + (__LINE__) + (i) * 13612)
#else
#define GEN_ID (__LINE__)
#define GEN_ID_LOOP(i) ((__LINE__) + (i) * 1000)
#define GEN_ID_LOOP(i) ((__LINE__) + (i) * 13612)
#endif
#include "gfx_es2/draw_buffer.h"