mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Fix compiler warnings
This commit is contained in:
@ -145,12 +145,17 @@ namespace GraphicalUserInterface
|
||||
|
||||
void PutBorderWithShadow(ScreenBitmap *Bitmap, Rect rect, uint32_t Color)
|
||||
{
|
||||
UNUSED(Bitmap);
|
||||
UNUSED(rect);
|
||||
UNUSED(Color);
|
||||
}
|
||||
|
||||
#define SHADOW_SIZE 12
|
||||
|
||||
void DrawShadow(ScreenBitmap *Bitmap, Rect rect)
|
||||
{
|
||||
UNUSED(Bitmap);
|
||||
UNUSED(rect);
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
@ -161,7 +166,7 @@ namespace GraphicalUserInterface
|
||||
{
|
||||
case Video::FontType::PCScreenFont1:
|
||||
{
|
||||
uint32_t *PixelPtr = (uint32_t *)Bitmap->Data;
|
||||
// uint32_t *PixelPtr = (uint32_t *)Bitmap->Data;
|
||||
char *FontPtr = (char *)font->GetInfo().PSF1Font->GlyphBuffer + (c * font->GetInfo().PSF1Font->Header->charsize);
|
||||
for (int64_t Y = *CharCursorY; Y < *CharCursorY + 16; Y++)
|
||||
{
|
||||
@ -205,5 +210,9 @@ namespace GraphicalUserInterface
|
||||
|
||||
void DrawString(ScreenBitmap *Bitmap, Rect rect, const char *Text, uint32_t Color)
|
||||
{
|
||||
UNUSED(Bitmap);
|
||||
UNUSED(rect);
|
||||
UNUSED(Text);
|
||||
UNUSED(Color);
|
||||
}
|
||||
}
|
||||
|
@ -30,10 +30,12 @@ namespace GraphicalUserInterface
|
||||
{
|
||||
void WidgetCollection::OnPaintBackground(Event *e)
|
||||
{
|
||||
UNUSED(e);
|
||||
}
|
||||
|
||||
void WidgetCollection::OnPaintForeground(Event *e)
|
||||
{
|
||||
UNUSED(e);
|
||||
foreach (auto Panel in this->Panels)
|
||||
{
|
||||
PutRect(this->Buffer, Panel->rect, Panel->Color);
|
||||
|
@ -48,21 +48,25 @@ namespace GraphicalUserInterface
|
||||
|
||||
void Window::OnMinimize(Event *e)
|
||||
{
|
||||
UNUSED(e);
|
||||
fixme("Window::OnMinimize() not implemented");
|
||||
}
|
||||
|
||||
void Window::OnMaximize(Event *e)
|
||||
{
|
||||
UNUSED(e);
|
||||
fixme("Window::OnMaximize() not implemented");
|
||||
}
|
||||
|
||||
void Window::OnClose(Event *e)
|
||||
{
|
||||
UNUSED(e);
|
||||
fixme("Window::OnClose() not implemented");
|
||||
}
|
||||
|
||||
void Window::OnPaintBackground(Event *e)
|
||||
{
|
||||
UNUSED(e);
|
||||
Rect PaintPosition = this->Position;
|
||||
PaintPosition.Left = 0;
|
||||
PaintPosition.Top = 0;
|
||||
|
Reference in New Issue
Block a user