~paravoid/Demos

50cd50e1b6f477840510c95d1b0d2a1d33a61df8 — paravoid 2 years ago 16b9b51
garbled: hardcode dimensions
1 files changed, 4 insertions(+), 24 deletions(-)

M efigop/garbled/efiboot.c
M efigop/garbled/efiboot.c => efigop/garbled/efiboot.c +4 -24
@@ 833,8 833,6 @@ efi_makebootargs(void)
	EFI_GRAPHICS_OUTPUT_MODE_INFORMATION
				*gopi;
	bios_efiinfo_t		*ei = &bios_efiinfo;
	int			 curmode;
	UINTN			 sz, gopsiz, bestsiz = 0;

	/*
	 * ACPI, BIOS configuration table


@@ 855,24 853,6 @@ efi_makebootargs(void)
	 */
	status = BS->LocateProtocol(&gop_guid, NULL, (void **)&gop);
	if (!EFI_ERROR(status)) {
		if (gopmode < 0) {
			for (i = 0; i < gop->Mode->MaxMode; i++) {
				status = gop->QueryMode(gop, i, &sz, &gopi);
				if (EFI_ERROR(status))
					continue;
				gopsiz = gopi->HorizontalResolution *
				    gopi->VerticalResolution;
				if (gopsiz > bestsiz) {
					gopmode = i;
					bestsiz = gopsiz;
				}
			}
		}
		if (gopmode >= 0 && gopmode != gop->Mode->Mode) {
			curmode = gop->Mode->Mode;
			if (efi_gop_setmode(gopmode) != EFI_SUCCESS)
				(void)efi_gop_setmode(curmode);
		}

		gopi = gop->Mode->Info;
		switch (gopi->PixelFormat) {


@@ 899,10 879,10 @@ efi_makebootargs(void)
			break;
		}
		ei->fb_addr = gop->Mode->FrameBufferBase;
		ei->fb_size = gop->Mode->FrameBufferSize;
		ei->fb_height = gopi->VerticalResolution;
		ei->fb_width = gopi->HorizontalResolution;
		ei->fb_pixpsl = gopi->PixelsPerScanLine;
		ei->fb_size = 1024 * 768 * 4;
		ei->fb_height = 768;
		ei->fb_width = 1024;
		ei->fb_pixpsl = 1024;
	}

	/*