NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-macppc/48600
The following reply was made to PR port-macppc/48600; it has been noted by GNATS.
From: scole_mail <scole_mail%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: port-macppc/48600
Date: Sat, 22 Nov 2014 10:14:18 -0500
I can get it to switch from 8bit/console to 16bit/X if I change modes
in MAPPED not DUMBFB:
case WSDISPLAYIO_SMODE: {
int new_mode = *(int*)data;
if (new_mode != sc->sc_mode) {
int depth = new_mode == WSDISPLAYIO_MODE_EMUL ? 8 : 16;
switch(new_mode) {
case WSDISPLAYIO_MODE_EMUL:
case WSDISPLAYIO_MODE_MAPPED:
//case WSDISPLAYIO_MODE_DUMBFB: // 8 bit ?
sc->sc_mode = new_mode;
platinumfb_set_mode(sc, sc->sc_videomode, depth);
platinumfb_set_rasops(sc, &ms->scr_ri, true);
if (new_mode == WSDISPLAYIO_MODE_EMUL)
vcons_redraw_screen(ms);
}
}
}
return 0;
Guess I don't understand the difference between MAPPED and DUMBFB. If
I do
case WSDISPLAYIO_MODE_EMUL:
//case WSDISPLAYIO_MODE_MAPPED:
case WSDISPLAYIO_MODE_DUMBFB:
X always starts in 8 bit, so it seems like I need to set depth when MAPPED ?
Home |
Main Index |
Thread Index |
Old Index