fix: correction fonction bestdriver dans video.c
This commit is contained in:
parent
b8e26a000b
commit
4ce5c7333c
|
@ -53,10 +53,6 @@
|
|||
pushl %%eax\n \
|
||||
mov %%dr3, %%eax \n \
|
||||
pushl %%eax\n \
|
||||
mov %%dr4, %%eax \n \
|
||||
pushl %%eax\n \
|
||||
mov %%dr5, %%eax \n \
|
||||
pushl %%eax\n \
|
||||
mov %%dr6, %%eax \n \
|
||||
pushl %%eax\n \
|
||||
mov %%dr7, %%eax \n \
|
||||
|
@ -80,8 +76,6 @@
|
|||
popl %%eax \n \
|
||||
popl %%eax \n \
|
||||
popl %%eax \n \
|
||||
popl %%eax \n \
|
||||
popl %%eax \n \
|
||||
popl %%ss\n \
|
||||
popl %%gs\n \
|
||||
popl %%fs\n \
|
||||
|
|
|
@ -365,14 +365,15 @@ void registerdriver(videofonction *pointer)
|
|||
/*******************************************************************************/
|
||||
/* Choisi le meilleur driver en terme d'affichage */
|
||||
void apply_bestdriver(void) {
|
||||
u32 i=0,j=0;
|
||||
u32 i=0,j;
|
||||
u8 bestdepth=0x0;
|
||||
u8 bestresol=0x0;
|
||||
u32 bestresol=0x0;
|
||||
u8 bestmode=0x0;
|
||||
u8* bestdriver=NULL;
|
||||
capabilities *cap;
|
||||
while (registred[i].nom!=NULL && i<MAXDRIVERS) {
|
||||
cap=registred[i].pointer->getvideo_capabilities();
|
||||
j=0;
|
||||
while(cap[j].modenumber!=0xFF) {
|
||||
if (cap[j].depth>bestdepth && (cap[j].width*cap[j].height)>=bestresol)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue