mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
naive improvement of ID generation
This commit is contained in:
parent
dee2062012
commit
34f5b7abb3
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
4
ui/ui.h
4
ui/ui.h
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue