- [NEW] draw::isfading()
- Ocultem el cursor del SO
This commit is contained in:
@@ -58,6 +58,7 @@ namespace draw
|
|||||||
sel_color = transparent = 0;
|
sel_color = transparent = 0;
|
||||||
for (int i=0;i<256;++i) color_indices[i] = i;
|
for (int i=0;i<256;++i) color_indices[i] = i;
|
||||||
|
|
||||||
|
SDL_ShowCursor(SDL_DISABLE);
|
||||||
//textsurf = loadSurface("font.gif");
|
//textsurf = loadSurface("font.gif");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -416,6 +417,11 @@ namespace draw
|
|||||||
for (int i=0; i<256; ++i) if (decPalEntry(i, 8)) fading_out = true;
|
for (int i=0; i<256; ++i) if (decPalEntry(i, 8)) fading_out = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isfading()
|
||||||
|
{
|
||||||
|
return fading_in || fading_out;
|
||||||
|
}
|
||||||
|
|
||||||
// Refresca la pantalla
|
// Refresca la pantalla
|
||||||
void render()
|
void render()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ namespace draw
|
|||||||
|
|
||||||
void fadein();
|
void fadein();
|
||||||
void fadeout();
|
void fadeout();
|
||||||
|
bool isfading();
|
||||||
|
|
||||||
//void print(const char* text, const int x, const int y, const uint8_t color, const uint8_t borde);
|
//void print(const char* text, const int x, const int y, const uint8_t color, const uint8_t borde);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user