mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 22:20:17 +01:00
13 lines
288 B
C
13 lines
288 B
C
|
|
#include "fastfetch.h"
|
||
|
|
|
||
|
|
#include <X11/Xlib.h>
|
||
|
|
|
||
|
|
void ffPrintResolution(FFstate* state)
|
||
|
|
{
|
||
|
|
|
||
|
|
Display* display = XOpenDisplay(NULL);
|
||
|
|
Screen* screen = DefaultScreenOfDisplay(display);
|
||
|
|
|
||
|
|
ffPrintLogoAndKey(state, "Resolution");
|
||
|
|
printf("%ix%i\n", screen->width, screen->height);
|
||
|
|
}
|